netdev
[Top] [All Lists]

Kernel connector - userspace <-> kernelspace "linker".

To: netdev@xxxxxxxxxxx
Subject: Kernel connector - userspace <-> kernelspace "linker".
From: Evgeniy Polyakov <johnpol@xxxxxxxxxxx>
Date: Thu, 16 Sep 2004 14:51:39 +0400
Organization: MIPT
Reply-to: johnpol@xxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
Hmm, do not know how to describe... 
Kind of mega-picture can be found at 
http://tservice.net.ru/~s0mbre/?section=gallery&item=connector_design

This driver adds possibility to connect anything with anything using
netlink based network.
One must register callback and identificator. When driver receives
special netlink message with appropriate identificator, appropriate
callback will be called.
I think that the code better explains what I'm trying to say.

cn_queue.[ch] - main queue processing routings.
connector.[ch] - interface to the external modules.
ucon.c - userspace daemon. It is broken a bit, but the main idea is 
        very clear.
cn_test.c - module to test new connector.
Makefile - it will link all above cruft.

Origianlly this was written for SuperIO and w1 subsystems to connect 
them to userspace, but actually it can be used outside those projects.
Greg KH recommended to send it to linux-kernl@ mail list, but I personally 
no not like that too "floodfil" list.

Please review and comment.

-- 
        Evgeniy Polyakov

Crash is better than data corruption. -- Art Grabowski

Attachment: cn_queue.c
Description: Text Data

Attachment: cn_queue.h
Description: Text Data

Attachment: cn_test.c
Description: Text Data

Attachment: connector.c
Description: Text Data

Attachment: connector.h
Description: Text Data

Attachment: Makefile
Description: Text Data

Attachment: ucon.c
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>