Hi All,
Has anyone considered using threads in batman-adv? is is possible to use fork() send.c file? so that it can handle sk_buff traffic differently according to its content (tcp, icmp)
On 12/11/14 09:19, Krishnathiepan Rasanayagam wrote:
Hi All,
Has anyone considered using threads in batman-adv?
did you mean kthread? I don't think this would bring any real benefit. You should probably read/understand the rest of the networking stack in the linux kernel to understand how incoming/outgoing packets are handled.
is is possible to use fork() send.c file?
fork() is a function that is supposed to be used in *userspace* to create a new *process*. This is neither available nor conceptually possible in kernel space.
Maybe you should read a bit more about what you can do and what you cannot do while developing a kernel module? :)
yep. i should have :) now only freading it out. sorry
thanks alot for replying :)
On Wed, Nov 12, 2014 at 2:47 PM, Antonio Quartulli antonio@meshcoding.com wrote:
On 12/11/14 09:19, Krishnathiepan Rasanayagam wrote:
Hi All,
Has anyone considered using threads in batman-adv?
did you mean kthread? I don't think this would bring any real benefit. You should probably read/understand the rest of the networking stack in the linux kernel to understand how incoming/outgoing packets are handled.
is is possible to use fork() send.c file?
fork() is a function that is supposed to be used in *userspace* to create a new *process*. This is neither available nor conceptually possible in kernel space.
Maybe you should read a bit more about what you can do and what you cannot do while developing a kernel module? :)
-- Antonio Quartulli
b.a.t.m.a.n@lists.open-mesh.org