This might not be best forum for this, but majodomo@rutgers didn't help me
too much for choosing better list (info <lists> doesn't give much
information of anything else than 'linux-kernel' list)
---------
I have now been adding /proc interface for my module so that it would tell
to (l)user space if something wierd happens.
(ie. packet comes that I've specified 4examp IP src=0x0a00001f)
problem here is that I have 'no' idea how to implement select() to the
module.
I'd like it to work in a way that there is a program in user space which
has opened /proc/foo file and is waiting in select for information. when
module creates information It'll send it to user process which would then
be released from select and continue...
Is this really possible with /proc or would it be better to use /dev
for continuous io between kernel<->user space programs
(I'm not sure what is big difference between them apart from fact that
/dev needs node (mknod) and /proc gets virtual inode)
Tried to find example of select() in "struct file_operations" within linux
kernel but with little success :(
If you'd know any examples I'd appreciate any pointers...
---
Also considered how to send packages from module to kernel and network.
eth_trans_type(...) seemed quite safe bet for sending raw packages out
however I didn't find similiar func for sending packages towards kernel :(
---
PS. If there is proper forum for (virtual) filesystem stuff please tell
me.
--
Janne
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]