On Wed, 2005-04-27 at 00:16 -0500, Dmitry Torokhov wrote: > On Tuesday 26 April 2005 23:06, Evgeniy Polyakov wrote: > > Let's clarify that we are talking about userspace->kernelspace > > direction. > > Only for that messages callback path is invoked. > > What about kernelspace->userspace or kernelspace->kernelspace? > From what I see nothing stops kernel code from calling cn_netlink_send, > in fact your cbus does exactly that. So I am confused why you singled > out userspace->kernelspace direction. You miunderstand the code - cn_netlink_send() never ends up in callback invocation, it can only deliver messages in kernelspace->userspace direction. kernelspace->userspace direction ends up adding buffer into socket queue, from which userspace may read data using recv() system call. There is no kernelspace->kernelspace sending possibility except by creating new socket in userspace and sendmsg/recvmsg interception/using, but that is the same as reading from userspace. -- Evgeniy Polyakov Crash is better than data corruption -- Arthur Grabowski
Attachment:
signature.asc
Description: This is a digitally signed message part
- Follow-Ups:
- Re: [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- From: Dmitry Torokhov <[email protected]>
- Re: [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- References:
- [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- From: Evgeniy Polyakov <[email protected]>
- Re: [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- From: Dmitry Torokhov <[email protected]>
- Re: [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- From: Evgeniy Polyakov <[email protected]>
- Re: [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- From: Dmitry Torokhov <[email protected]>
- [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- Prev by Date: Re: [PATCH 3/7] dlm: recovery
- Next by Date: Re: [PATCH scsi-misc-2.6 01/04] scsi: make scsi_send_eh_cmnd use its own timer instead of scmd->eh_timeout
- Previous by thread: Re: [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- Next by thread: Re: [1/1] connector/CBUS: new messaging subsystem. Revision number next.
- Index(es):