All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bartłomiej Zimoń" <uzi18@o2.pl>
To: linux-kernel@vger.kernel.org
Subject: Re: userspace notification from module
Date: Sat, 02 Jan 2010 14:29:31 +0100	[thread overview]
Message-ID: <686edb2c.6263643a.4b3f4a3b.b60b3@o2.pl> (raw)

Dnia 2 stycznia 2010 13:36 	Daniel Borkmann <llug.dan@googlemail.com> napisał(a):

> Hi Bartłomiej,
> 
> Bartłomiej Zimoń wrote:
> > Use inotify from userspace could be interesting for such data,
> > but looks like sysfs/procfs doesn't send signal about data changed in file or maybe i'm wrong?
> > 
> > If sysfs/procfs is wrong for that so must create device file, but here secound problem 
> > how to notify that file/buffer has new data?
> 
> Actually, the file content of a procfs file is volatile and generated on
> the fly, just have a look at some device drivers or at the API.
> 

As I fought. Reading now sources of some char drivers.

> Did you have a look at the netlink protocol for communication from
> kernel to userspace?
> 

Ok i will :)

I will explain more what i'm going to do.
The idea is simple. Kernel before suspend/resume sends notification to 
registered kernel objects. So i have written small module to register
there and want now pass these data to /dev/file. It is 1byte so not a big deal.

I'm searching now for notification about new byte in buffer, as it is almost 
clear for async: http://www.xml.com/ldd/chapter/book/ch05.html#t4
but for sync still haven't find.

It could be interesting for NetworkManager to hook on such event.

Looks like my post arrives 2nd time in lkml.

Thx for reply.

Best Regards.
Bartłomiej Zimoń
PLD Linux, Kadu Team


             reply	other threads:[~2010-01-02 13:29 UTC|newest]

Thread overview: 117+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-02 13:29 Bartłomiej Zimoń [this message]
2010-01-02 14:04 ` userspace notification from module Daniel Borkmann
2010-01-02 14:27   ` [suspend/resume] " Bartłomiej Zimoń
2010-01-02 15:11     ` Oliver Neukum
     [not found]     ` <6f52f5b81001020713j5435cfadr1143806a9026adc2@mail.gmail.com>
2010-01-02 15:15       ` Daniel Borkmann
2010-01-02 15:40         ` Andy Walls
2010-01-02 15:56           ` Daniel Borkmann
2010-01-02 18:26             ` Bartłomiej Zimoń
2010-01-02 21:01               ` Rafael J. Wysocki
     [not found]                 ` <7cf4f51f.5fc2a5cd.4b3fc3ad.c849c@o2.pl>
2010-01-02 23:29                   ` Rafael J. Wysocki
2010-01-02 23:29                     ` Rafael J. Wysocki
2010-01-03  1:03                     ` Bartłomiej Zimoń
2010-01-03  9:30                       ` Daniel Borkmann
2010-01-03  9:30                       ` Daniel Borkmann
2010-01-03 10:06                         ` Daniel Borkmann
2010-01-03 10:06                         ` Daniel Borkmann
2010-01-03 11:01                           ` Bartłomiej Zimoń
2010-01-03 21:49                             ` Rafael J. Wysocki
2010-01-03 21:49                             ` Rafael J. Wysocki
2010-01-04 13:38                               ` Stefan Seyfried
2010-01-04 13:38                               ` Stefan Seyfried
2010-01-03 21:33                         ` Rafael J. Wysocki
2010-01-03 21:33                         ` Rafael J. Wysocki
2010-01-03 21:29                       ` Rafael J. Wysocki
2010-01-03 21:29                       ` Rafael J. Wysocki
2010-01-03 22:53                         ` Bartłomiej Zimoń
2010-01-03 23:30                           ` Rafael J. Wysocki
2010-01-03 23:30                           ` Rafael J. Wysocki
2010-01-03 23:35                             ` Bartłomiej Zimoń
2010-01-03 23:45                               ` Rafael J. Wysocki
2010-01-03 23:45                               ` Rafael J. Wysocki
2010-01-04  0:51                                 ` Bartłomiej Zimoń
2010-01-04  0:51                                 ` Bartłomiej Zimoń
2010-01-04  1:06                                   ` Bartłomiej Zimoń
2010-01-04 19:43                                   ` Rafael J. Wysocki
2010-01-05  9:07                                     ` [linux-pm] " Anders Eriksson
2010-01-05 21:02                                       ` Bartłomiej Zimoń
2010-01-05 21:23                                         ` [linux-pm] " Rafael J. Wysocki
2010-01-05 22:12                                           ` Bartłomiej Zimoń
2010-01-05 22:12                                           ` [linux-pm] " Bartłomiej Zimoń
2010-01-05 23:03                                             ` Rafael J. Wysocki
2010-01-05 23:03                                             ` [linux-pm] " Rafael J. Wysocki
2010-01-05 23:37                                               ` Bartłomiej Zimoń
2010-01-06 14:35                                                 ` [linux-pm] " Anders Eriksson
2010-01-06 20:37                                                   ` [linux-pm] [suspend/resume] Re: userspace notific ation " Bartłomiej Zimoń
2010-01-06 20:49                                                     ` Roland Dreier
2010-01-06 20:56                                                       ` Roland Dreier
2010-01-06 20:56                                                       ` Roland Dreier
2010-01-06 20:49                                                     ` Roland Dreier
2010-01-06 20:37                                                   ` Bartłomiej Zimoń
2010-01-15 20:02                                                   ` [suspend/resume] Re: userspace notification " Pavel Machek
2010-01-15 20:02                                                   ` [linux-pm] " Pavel Machek
2010-01-06 14:35                                                 ` Anders Eriksson
2010-01-05 21:23                                         ` Rafael J. Wysocki
2010-01-05 21:26                                       ` [linux-pm] " Stefan Seyfried
2010-01-05 22:22                                         ` Bartłomiej Zimoń
2010-01-05 23:05                                           ` Rafael J. Wysocki
2010-01-05 23:05                                           ` [linux-pm] " Rafael J. Wysocki
2010-01-06  0:43                                             ` Bartłomiej Zimoń
2010-01-06 10:10                                           ` Stefan Seyfried
2010-01-05 21:26                                       ` Stefan Seyfried
2010-01-05  9:07                                     ` Anders Eriksson
2010-01-04 19:43                                   ` Rafael J. Wysocki
2010-01-04 12:46                                 ` Daniel Borkmann
2010-01-04 19:45                                   ` Rafael J. Wysocki
2010-01-04 19:45                                   ` Rafael J. Wysocki
2010-01-04 12:46                                 ` Daniel Borkmann
2010-01-03 23:35                             ` Bartłomiej Zimoń
2010-01-03 17:20                     ` Bartłomiej Zimoń
2010-01-03 17:20                     ` Bartłomiej Zimoń
2010-01-03 21:50                       ` Rafael J. Wysocki
2010-01-03 21:50                       ` Rafael J. Wysocki
2010-01-09 10:32                 ` Pavel Machek
2010-01-09 13:40                   ` Rafael J. Wysocki
2010-01-15 20:03                     ` Pavel Machek
2010-01-15 20:03                       ` Pavel Machek
2010-01-15 22:14                       ` Rafael J. Wysocki
2010-01-15 22:14                         ` Rafael J. Wysocki
2010-01-16  3:00                         ` Eric Miao
2010-01-16  3:00                           ` Eric Miao
2010-01-16 17:00                           ` Stanislav Brabec
2010-01-16 17:00                             ` Stanislav Brabec
2010-01-16 18:12                             ` Pavel Machek
2010-01-16 18:12                               ` Pavel Machek
2010-01-16 22:05                               ` Rafael J. Wysocki
2010-01-16 22:05                                 ` Rafael J. Wysocki
2010-01-16 22:19                                 ` Pavel Machek
2010-01-16 22:19                                   ` Pavel Machek
2010-01-16 22:25                                   ` Pavel Machek
2010-01-16 22:25                                     ` Pavel Machek
2010-01-16 22:31                                     ` Rafael J. Wysocki
2010-01-16 22:31                                       ` Rafael J. Wysocki
2010-01-16 22:26                                   ` Rafael J. Wysocki
2010-01-16 22:26                                     ` Rafael J. Wysocki
2010-01-17 13:07                                     ` Pavel Machek
2010-01-17 13:07                                       ` Pavel Machek
2010-01-17 13:26                                       ` Russell King - ARM Linux
2010-01-17 13:26                                         ` Russell King - ARM Linux
2010-01-19  5:15                                         ` Pavel Machek
2010-01-19  5:15                                           ` Pavel Machek
2010-01-16 22:32                                 ` Russell King - ARM Linux
2010-01-16 22:32                                   ` Russell King - ARM Linux
2010-01-16 18:12                           ` Pavel Machek
2010-01-16 18:12                             ` Pavel Machek
2010-01-16 18:12                         ` Pavel Machek
2010-01-16 18:12                           ` Pavel Machek
2010-01-16 22:07                           ` Rafael J. Wysocki
2010-01-16 22:07                             ` Rafael J. Wysocki
2010-01-16 22:14                             ` Pavel Machek
2010-01-16 22:14                               ` Pavel Machek
2010-01-16 22:21                               ` Rafael J. Wysocki
2010-01-16 22:21                                 ` Rafael J. Wysocki
2010-01-02 21:20               ` Bartłomiej Zimoń
2010-01-02 14:31   ` Bartłomiej Zimoń
  -- strict thread matches above, loose matches on Subject: below --
2010-01-02 12:18 Bartłomiej Zimoń
2010-01-02 12:36 ` Daniel Borkmann
2010-01-02 12:02 Bartłomiej Zimoń

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=686edb2c.6263643a.4b3f4a3b.b60b3@o2.pl \
    --to=uzi18@o2.pl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.