Charles.Forsyth20060303-partialeea662d19 years agoHistory
81 lines · 1.6 KB · Text
RawDownload
.TH INDIR 3.SH NAMEindir \- attach to device indirectly by name.SH SYNOPSIS.BI "bind  #*" name[\c.BI ! spec\c].I " dir".SH DESCRIPTION.I Indirallows any other device to be referred to by its name instead of its perhaps arbitrary single character type;.I indiritself has the type character.RB ` * '.It has no name space of its own.On attach (see.IR attach (5)).I indirinterprets its device specifier string as the.I nameof a device to which it should attach, optionally followed by specifier.I specfor that device, separated from the.I nameby an exclamation mark.Attaching to.I indir(eg, by.IR sys-bind (2)),effectively attaches to the device with the given.I nameand.IR spec ,and all subsequent operations in the resulting name space access thatdevice, not.I indiritself..PPFor example, to access.IR cap (3),one could write:.IP.B "bind -a '#*cap' /dev".PPThe following commands both list the second instance of.IR ether (3),first directly, then using.IR indir :.IP.B "ls '#l1'".br.B "ls '#*ether!1'".PPThe file.B /dev/drivers(see.IR cons (3))lists the names of currently configured devices..SS CreditInvented by Bruce Ellis for Lucent's internal Research Inferno to help name dynamically-loaded device drivers.This is a re-implementation..SH SOURCE.B /emu/port/devindir.c.br.B /os/port/devindir.c.SH SEE ALSO.IR bind (1),.IR sys-bind (2),.IR cons (3).SH DIAGNOSTICSIf.I nameis not configured,.I indirreturns a suitable diagnostic in the error string..SH BUGSArguably the kernelcould simply look up the.I nameitself.