Skip to contentSkip to conversation

Kernel connector.

DISCUSSION Evgeniy Polyakov 1 participant 3 messages May 19, 2005

lore
Share & tools
lore
#1 lore raw
Quoted 2 lines · Evgeniy Polyakov

Kernel connector.

Design draft as picture:
http://tservice.net.ru/~s0mbre/?section=gallery&item=connector_design

Design draft as diagram:
http://tservice.net.ru/~s0mbre/archive/connector.dia

Signature · 10 lines
	Evgeniy Polyakov ( s0mbre )

Crash is better than data corruption. -- Art Grabowski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040831/0f162bad/attachment.bin
#2 lore raw
In reply to Evgeniy Polyakov
Quoted 12 lines · On Mon, 30 Aug 2004 16:59:09 +0400 Evgeniy Polyakov <[email protected]> wrote:

Kernel connector.

Hmm, do not know how to describe... And do not have a mega picture(may draw if you want).

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.

Quoted 6 lines

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.

While driving home I realized, that this connector can be easily extended to support _any_ kind of messages, not only cn_msg. If callback supplier will provide length of the message that should be redirected to him and some ->check() callback, then main connector after receiving the message checks all registered callback suppliers, and if lengths are equal pass either skb, or data, or anything else to the supplier's->check() functions, which must decide should this packet be redirected to callback spuuplier or not.

Obviously it can be extended to support ioctl, but I do not think it is really needed.

Evgeniy Polyakov ( s0mbre )

Only failure makes us experts. -- Theo de Raadt