TUN/TAP device is stuck on read

2017-06-19 Thread Ramon Fried
Hi ! I've written a TUN device in user space and it works well. Sometimes however, it appears that connectivity stops. no packets are transferred. I manage to produce the issue only when I run iperf for a long time for testing the throughput. Digging deeper, it looks that the application is bloc

Re: Is there any way to add an attribute under sysfs at the “platform” level?

2017-06-19 Thread Roman Storozhenko
On Mon, Jun 19, 2017 at 08:55:22AM +0800, Greg KH wrote: > On Sun, Jun 18, 2017 at 05:38:36PM +0300, Roman Storozhenko wrote: > > Hello everybody! > > > > I am trying to modify "pcspkr" driver undere linux kernel source tree. I > > added a new line there: > > > > sample_id_dir = kobject_create_a

Re: Is there any way to add an attribute under sysfs at the “platform” level?

2017-06-19 Thread Greg KH
On Mon, Jun 19, 2017 at 06:09:28PM +0300, Roman Storozhenko wrote: > On Mon, Jun 19, 2017 at 08:55:22AM +0800, Greg KH wrote: > > On Sun, Jun 18, 2017 at 05:38:36PM +0300, Roman Storozhenko wrote: > > > Hello everybody! > > > > > > I am trying to modify "pcspkr" driver undere linux kernel source t