Little question about device driver name

David DEMELIER demelier.david at gmail.com
Sun Oct 3 08:26:37 UTC 2010


2010/9/24 Bob Hall <rjhjr0 at gmail.com>:
> On Fri, Sep 24, 2010 at 07:04:06PM +0200, David DEMELIER wrote:
>> Hi folks,
>>
>> I just wonder why if_bridge(4) is prefixed by if_ for device name.
>> Every other device name like lagg(4), gif(4) are not prefixed with
>> this same one.
>
> if_bridge was based on bridge. I assume that when the updated if_bridge
> was introduced, the earlier bridge was still available, so the author
> needed some way to distinguish his new module from the earlier module.
>
> Type "man bridge" and check the Authors section.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>

And is there driver bridge still available ?

./boot/powerpc/ofw/Makefile:# 64-bit bridge extensions
./boot/powerpc/ofw/Makefile:CFLAGS+= -Wa,-mppc64bridge
./modules/Makefile:	bridgestp \
./modules/Makefile:	if_bridge \
./modules/bridgestp/Makefile:# $FreeBSD:
src/sys/modules/bridgestp/Makefile,v 1.3.2.1 2009/08/03 08:13:06
kensmith Exp $
./modules/bridgestp/Makefile:KMOD=	bridgestp
./modules/bridgestp/Makefile:SRCS=	bridgestp.c
./modules/if_bridge/Makefile:# $FreeBSD:
src/sys/modules/if_bridge/Makefile,v 1.6.10.1 2009/08/03 08:13:06
kensmith Exp $
./modules/if_bridge/Makefile:KMOD=	if_bridge
./modules/if_bridge/Makefile:SRCS=	if_bridge.c opt_inet.h opt_inet6.h opt_carp.h
./modules/netgraph/Makefile:	bridge \
./modules/netgraph/bridge/Makefile:# $FreeBSD:
src/sys/modules/netgraph/bridge/Makefile,v 1.3.36.1 2009/08/03
08:13:06 kensmith Exp $
./modules/netgraph/bridge/Makefile:KMOD=	ng_bridge
./modules/netgraph/bridge/Makefile:SRCS= 	ng_bridge.c

I found netgraph/bridge but it's not the same thing.

-- 
Demelier David


More information about the freebsd-questions mailing list