next up previous contents index
Next: 29.2.1 oskit_linux_block_open: Open a Up: 29 Linux Driver Set: Previous: 29.1.7 oskit_linux_init_ethernet_name: Initialize and

29.2 Obtaining object references

Once the desired drivers are initialized, registered, and probed, one can obtain references to their blkio, netio, etc interfaces (See Chapter 5) two different ways.

The first way is to look them up via their Linux name, e.g., ``sd0'' for a SCSI disk, or ``eth0'' for a Ethernet device. This is described here as it is specific to Linux.

The second, and preferred, way is to use osenv_device_lookup to find a detected device with the desired interface, such as oskit_etherdev_iid (See Chapter 12).





University of Utah Flux Research Group