lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 14 Oct 2014 10:48:15 +0200
From:	Johan Hovold <>
To:	tecfacet <>
Subject: Re: rotary encoder linux driver

On Sun, Oct 12, 2014 at 06:29:03PM -0700, tecfacet wrote:
> Hello.
> I am interested in the rotary encoder kernel driver.  I am very new to
> this linux kernel driver thing.  
> How do I pass the gpio and interrupt stuff to the kernel module.. I
> think it is thru the rotary_encoder.h file.. am I correct?

That should be done through the device tree these days. The binding is
documented in


in the kernel source tree.

> How does the information about encoder position etc get back to my
> user space program?  How is debounce handled?
> I am a little confused.  Is there an example of a complete working
> implementation?  I need to figure this out for school.

Have a look at the evtest program for an example:

Good luck,
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists