📄 wdbviodrv.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/wdbVioDrv.html - generated by refgen from wdbVioDrv.c --> <title> wdbVioDrv </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>wdbVioDrv</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>wdbVioDrv</strong> - virtual tty I/O driver for the WDB agent </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./wdbVioDrv.html#wdbVioDrv">wdbVioDrv</a></i>( )</b> - initialize the tty driver for a WDB agent<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library provides a psuedo-tty driver for use with the WDB debugagent. I/O is performed on a virtual I/O device just like it is ona VxWorks serial device. The difference is that the data is notmoved over a physical serial channel, but rather over a virtualchannel created between the WDB debug agent and the Tornado hosttools.<p>The driver is installed with <b><i><a href="./wdbVioDrv.html#wdbVioDrv">wdbVioDrv</a></i>( )</b>. Individual virtual I/O channelsare created by opening the device (see <b><a href="./wdbVioDrv.html#top">wdbVioDrv</a></b> for details). Thevirtual I/O channels are defined as follows:<p><table><tr valign=top><th align=left>Channel </th><th align=left> </th><th align=left> </th><th align=left> Usage</tr><tr><td colspan="4"><hr></tr><tr valign=top><td align=left>0 </td><td align=left> </td><td align=left> </td><td align=left> Virtual console</tr><tr valign=top><td align=left>1-0xffffff </td><td align=left> </td><td align=left> Dynamically created on the host</tr><tr valign=top><td align=left>>= 0x1000000 </td><td align=left> </td><td align=left> User defined</tr><tr valign=top><td align=left></tr></tr></table>Once data is written to a virtual I/O channel on the target, it is sentto the host-based target server. The target server allows this data to besent to another host tool, redirected to the "virtual console," orredirected to a file. For details see the<i>Tornado User's Guide. </i><p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbVioDrv.html#top">wdbVioDrv</a></b><hr><a name="wdbVioDrv"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>wdbVioDrv</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>wdbVioDrv</i>( )</strong> - initialize the tty driver for a WDB agent</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS wdbVioDrv ( char * name )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine initializes the VxWorks virtual I/O driver and createsa virtual I/O device of the specified name.<p>This routine should be called exactly once, before any reads, writes, oropens. Normally, it is called by <b><i><a href="./usrConfig.html#usrRoot">usrRoot</a></i>( )</b> in <b>usrConfig.c</b>,and the device name created is "/vio".<p>After this routine has been called, individual virtual I/O channelscan be open by appending the channel number to the virtual I/Odevice name. For example, to get a file descriptor for virtual I/Ochannel 0x1000017, call <b><i><a href="./ioLib.html#open">open</a></i>( )</b> as follows:<pre> fd = open ("/vio/0x1000017", O_RDWR, 0)</pre></blockquote><h4>RETURNS</h4><blockquote><p>OK, or ERROR if the driver cannot be installed.</blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./wdbVioDrv.html#top">wdbVioDrv</a></b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -