Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - QNET & kernel: (3 Items)
   
QNET & kernel  
first - sorry my english
I read some docs(sys_arch, neutrino user and programmer guide and etc..) and i can't find one little thing: 
if i send message to remote thread, my Node Descriptor is non zero and kernel must send data to qnet manager.
1. How kernel find qnet manager(his pid)?
2. How kernel send data to qnet manager? as message or use other way?

thank's
Re: QNET & kernel  
Qnet is a special piece -- there are hooks throughout the kernel
messaging code that test whether the message is local or remote and act
differently depending on the result.  The Qnet manager itself is known
to the kernel, so the kernel can redirect messages as appropriate.

If you are interested in the kernel code, you can start in ker_fastmsg.c
and follow references to COF_NETCON and net_send.  It's a complicated
system, though.

Doug

On Fri, 2009-09-04 at 09:57 -0400, citizen matter wrote:
> first - sorry my english
> I read some docs(sys_arch, neutrino user and programmer guide and etc..) and i can't find one little thing: 
> if i send message to remote thread, my Node Descriptor is non zero and kernel must send data to qnet manager.
> 1. How kernel find qnet manager(his pid)?
> 2. How kernel send data to qnet manager? as message or use other way?
> 
> thank's
> 
> 
> 
> _______________________________________________
> 
> OSMeta
> http://community.qnx.com/sf/go/post37361
> 
Re: QNET & kernel  
> Qnet is a special piece -- there are hooks throughout the kernel
> messaging code that test whether the message is local or remote and act
> differently depending on the result.
thank you for this information - now i know what look in sources...

> It's a complicated system, though.
i think about this complication and post here some results(if i have :))