Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - how do I create a combine devctrl() message: (2 Items)
   
how do I create a combine devctrl() message  
Hi,

I'm looking for pointers/hints/documents/samplecode/anything about how to create a combine message for a devctrl call.

http://www.qnx.com/developers/docs/6.3.2/neutrino/prog/resmgr.html#HANDLING_devctl


 *   struct _io_devctl  shows how to detect the combine_len, but not how to interpret the incoming data.
 *   Devctrl() does not show any parm specifically related to creating a combine message.

Are there any other documents on the QNX website I can look at for information?

Cheers,
maurice


Maurice Gibbs



Software Designer

CommTest WaveReady BU

JDS Uniphase Corp.

613.843.2326

Re: how do I create a combine devctrl() message  
> I'm looking for pointers/hints/documents/samplecode/anything about how to 
> create a combine message for a devctrl call.

Perhaps you could you clarify what you are wanting to combine?

Combine a devctl with an initial open to get a more efficient pathname-targetted call?  Look at lib/c/1/stat.c (and 
replace the IO_STAT msg hdr with a IO_DEVCTL one).

Combine devctl with other messages?  Combine multiple devctls?  Somethign else ... ?

How to handle it in the client?  You must hand-craft the message.

How to handle it in the resmgr?  Generally you do nothing special, the resmgr layer will make your attached callout for 
every combined message structure it finds, and usually you don't care either way (unless avoiding reply data, eg see lib
/c/iofunc/iofunc_lseek.c).