📄 dlpilib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/dlpiLib.html - generated by refgen from dlpiLib.c --> <title> dlpiLib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>dlpiLib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>dlpiLib</strong> - Data Link Provider Interface (DLPI) Library (STREAMS Option) </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./dlpiLib.html#dlpiInit">dlpiInit</a></i>( )</b> - initialize the DLPI driver<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library implements the generic Data Link Provider Interface (DLPI) driver which is common for all network drivers. This is a STREAMS-based interface between the data link layer (the Data Link Service provider) and the network layer. This library enables a Data Link Service (DLS) user to access the DLPI conformant driver (the DLS provider). It also provides an interface to the Wind River-specific network drivers. <p></blockquote><h4>USER-CALLABLE ROUTINES</h4><blockquote><p>The DLPI interface is initialized by the <b><i><a href="./dlpiLib.html#dlpiInit">dlpiInit</a></i>( )</b> routine which installs the DLPI STREAMS driver in the VxWorks I/O subsystem.<p></blockquote><h4>IMPLEMENTATION</h4><blockquote><p>This library supports up to 8 SAPs (Service Access Points). The driver opencalls are treated as clone opens, thereby assigning a new stream for each open. Each opened stream is bound to a SAP. There is a one-to-one correspondencebetween the stream opened and the SAP. <p>The DLPI driver serves as the generic driver under which operates a networkdriver. The network driver hands over the received packets to the DLPI driver using the network driver's <b>etherInputHook</b> function pointer. This pointer is installed at the time the stream is bound to the SAP, that is, when the <b>DL_BIND_REQ</b> primitive is called by the DLS user. The network driver must support the etherInputHook. For more information on etherInputHook, see themanual entry for <b><a href="./etherLib.html#top">etherLib</a></b>. This DLPI driver is a style 2 DLS provider. <p>The <b>DL_ATTACH_REQ</b> (attach request) primitive generated by the user should concatenate the name of the network device to be attached to the attach requestmessage. The attach request primitive implemented in this driver gets the name of the appropriate network device from the attach-request message. It then getsthe pointer to the appropriate network controller data structure from the nameobtained. The network device control structure obtained is a pointer to an<b>arpcom</b> structure. The attach request primitive calls <b><i><a href="./ifLib.html#ifunit">ifunit</a></i>( )</b> to obtain the pointer to the device control structure. <p>The packet <i>type</i> field in the Ethernet frame is used to multiplex betweenvarious SAPs. This DLPI driver supports only Ethernet frame formats. Itdoes not support IEEE 802.3 frame formats. <p>DLPI SERVICES.This library supports a subset of DLPI services. The services provided by this library are:<p> <b>DL_ATTACH_REQ</b><br> <b>DL_DETACH_REQ</b><br> <b>DL_BIND_REQ</b><br> <b>DL_BIND_ACK</b><br> <b>DL_INFO_REQ</b><br> <b>DL_INFO_ACK</b><br> <b>DL_UNBIND_REQ</b><br> <b>DL_ERROR_ACK</b><br> <b>DL_UNITDATA_REQ</b><br> <b>DL_UNITDATA_IND</b><br> <b>DL_OK_ACK</b><p></blockquote><h4>INCLUDE FILES</h4><blockquote><p><b>dlpi.h</b> <b>stream.h</b> <b>mikernel.h</b><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./dlpiLib.html#top">dlpiLib</a></b>, <b><a href="./strmLib.html#top">strmLib</a></b>, <i>Data Link Provider Interface Specification, Revision 2.0.0, </i><i>UNIX SVR4.2 STREAMS-based Data Link Provider Interface. </i><p><hr><a name="dlpiInit"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>dlpiInit</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>dlpiInit</i>( )</strong> - initialize the DLPI driver</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS dlpiInit ( void )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine installs the STREAMS DLPI driver into the VxWorks I/O subsystem.<p></blockquote><h4>RETURNS</h4><blockquote><p>N/A</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./dlpiLib.html#top">dlpiLib</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -