public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] Threads in batman-adv
@ 2014-11-12  8:19 Krishnathiepan Rasanayagam
  2014-11-12  9:17 ` Antonio Quartulli
  0 siblings, 1 reply; 3+ messages in thread
From: Krishnathiepan Rasanayagam @ 2014-11-12  8:19 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

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)

-- 
Best regards,
Krishna.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] Threads in batman-adv
  2014-11-12  8:19 [B.A.T.M.A.N.] Threads in batman-adv Krishnathiepan Rasanayagam
@ 2014-11-12  9:17 ` Antonio Quartulli
  2014-11-12 11:51   ` Krishnathiepan Rasanayagam
  0 siblings, 1 reply; 3+ messages in thread
From: Antonio Quartulli @ 2014-11-12  9:17 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

[-- Attachment #1: Type: text/plain, Size: 708 bytes --]



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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [B.A.T.M.A.N.] Threads in batman-adv
  2014-11-12  9:17 ` Antonio Quartulli
@ 2014-11-12 11:51   ` Krishnathiepan Rasanayagam
  0 siblings, 0 replies; 3+ messages in thread
From: Krishnathiepan Rasanayagam @ 2014-11-12 11:51 UTC (permalink / raw)
  To: The list for a Better Approach To Mobile Ad-hoc Networking

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
>



-- 
Best regards,
Krishna.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-12 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12  8:19 [B.A.T.M.A.N.] Threads in batman-adv Krishnathiepan Rasanayagam
2014-11-12  9:17 ` Antonio Quartulli
2014-11-12 11:51   ` Krishnathiepan Rasanayagam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox