Index: io.sgml
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/common/current/doc/io.sgml,v
retrieving revision 1.2
diff -u -r1.2 io.sgml
--- io.sgml 15 Sep 2002 22:10:40 -0000 1.2
+++ io.sgml 5 Aug 2003 15:23:07 -0000
@@ -1143,6 +1143,47 @@
etc.
+
+
+ Cyg_ErrNo (*lookup)
+ struct cyg_devtab_entry **tab
+ struct cyg_devtab_entry *sub_tab
+ const char name *name
+
+
+
+
+ The lookup function is called from cyg_io_lookup
+ if the name of the device in question (as declared in the
+ corresponding DEVTAB_ENTRY) matches the name
+ passed to cyg_io_lookup.
+
+
+
+ The **tab parameter holds a pointer to the
+ memory location of the devtab entry. This indirection allows the
+ device driver author to create a new devtab entry in the lookup
+ function, in order to provide for pluggable devices, and devices
+ where multiple instances are possible.
+
+
+
+ The *sub_tab parameter is a
+ cyg_io_handle_t that references a second device that
+ the current driver depends on. It has already been looked up by
+ the time it is passed to the lookup function.
+
+
+
+ The *name parameter holds a pointer to the
+ part of a string passed to cyg_io_lookup that
+ differs from the "base name" of a device. For instance, a device
+ might have the base name "/dev/fd". If a lookup is performed on
+ "/dev/fd/1", then the lookup function will be
+ called with "/1" in its name argument.
+
+
+