diff options
author | brooks <brooks@FreeBSD.org> | 2003-10-31 18:32:15 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2003-10-31 18:32:15 +0000 |
commit | f1e94c6f29b079e4ad9d9305ef3e90a719bcbbda (patch) | |
tree | 4d9e6671d486576767506230a4240131526fea49 /share/man/man9/ifnet.9 | |
parent | be546fdee455a96afdefee10d0bdba8547399f5b (diff) | |
download | FreeBSD-src-f1e94c6f29b079e4ad9d9305ef3e90a719bcbbda.zip FreeBSD-src-f1e94c6f29b079e4ad9d9305ef3e90a719bcbbda.tar.gz |
Replace the if_name and if_unit members of struct ifnet with new members
if_xname, if_dname, and if_dunit. if_xname is the name of the interface
and if_dname/unit are the driver name and instance.
This change paves the way for interface renaming and enhanced pseudo
device creation and configuration symantics.
Approved By: re (in principle)
Reviewed By: njl, imp
Tested On: i386, amd64, sparc64
Obtained From: NetBSD (if_xname)
Diffstat (limited to 'share/man/man9/ifnet.9')
-rw-r--r-- | share/man/man9/ifnet.9 | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/share/man/man9/ifnet.9 b/share/man/man9/ifnet.9 index e68e99a..fdc5d1b 100644 --- a/share/man/man9/ifnet.9 +++ b/share/man/man9/ifnet.9 @@ -216,18 +216,30 @@ are as follows: .Pq Vt "void *" A pointer to the driver's private state block. (Initialized by driver.) -.It Va if_name -.Pq Vt "char *" -The name of the interface, not including the unit number -(e.g., -.Dq Li de -or -.Dq Li lo ) . -(Initialized by driver.) .It Va if_link .Pq Fn TAILQ_ENTRY ifnet .Xr queue 3 macro glue. +.It Va if_xname +.Pq Vt "char *" +The name of the interface, +(e.g., +.Dq Li fxp0 +or +.Dq Li lo0) . +(Initialized by driver.) +.It Va if_dname +.Pq Vt "const char *" +The name of the driver. +(Initialized by driver.) +.It Va if_dunit +.Pq Vt int +A unique number assigned to each interface managed by a particular +driver. +Drivers may choose to set this to +.Dv IF_DUNIT_NONE +if a unit number is not associated with the device. +(Initialized by driver.) .It Va if_addrhead .Pq Vt "struct ifaddrhead" The head of the @@ -255,14 +267,6 @@ This number can be used in a to refer to a particular interface by index (see .Xr link_addr 3 ) . -.It Va if_unit -.Pq Vt short -A unique number assigned to each interface managed by a particular -driver, usually related to the unit number of a physical device in the -kernel configuration file -(see -.Xr config 8 ) . -(Initialized by driver.) .It Va if_timer .Pq Vt short Number of seconds until the watchdog timer |