From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valdis.Kletnieks@vt.edu (Valdis.Kletnieks at vt.edu) Date: Sun, 23 Aug 2015 10:10:23 -0400 Subject: Problem with line discipline in new kernels In-Reply-To: References: <16405.1440192067@turing-police.cc.vt.edu> Message-ID: <11979.1440339023@turing-police.cc.vt.edu> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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