Uniform Driver Interface: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Oops, wrong section
Avoid confusion about variable-length argument lists
Line 37:
All channel operation invocations have the following form:
 
<source lang="c">void meta_op(meta_cbtype_cb_t *cb, .../*, other arguments */);</source>
 
Where "meta" is a prefix specific to the metalanguage (e.g., udi or usbdi), "op" is the channel operation and "cbtype" is the control block type (read more on this below). Channel operations take zero or more parameters, depending on which operation we're talking about. The target channel is specified by the value of cb->gcb.channel.
Line 43:
This will result in the environment running an operation in the other region. The convention is for the operation to have the following declaration:
 
<source lang="c">static void ddd_meta_op(meta_cbtype_cb_t *cb /*, ...other arguments */);</source>
 
The same observations as above apply, plus "ddd" being a driver-specific prefix.