Problem with line discipline in new kernels

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Sun Aug 23 10:10:23 EDT 2015


On Sun, 23 Aug 2015 10:14:20 +0300, Ruth Glushkin said:
> On Thu, 22 Aug 2015 00:21:00 -0000, Valdis Kletnieks said:
>
> > Sounds like a reference counting problem.
>
> As far as I know, reference counter for line discipline sets to 0 in
> tty_register_ldisc(),

Not for the discipline, for the *MODULE*.

> And please advice how could I transfer data between kernel and user
> space not using filp_open() and filp_close().

Depends on the data.  sysfs, netlink, debugfs, or having userspace open the
file and using that, or any number of other ways to do it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150823/b79f29e1/attachment.bin 


More information about the Kernelnewbies mailing list