Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Oct 1997 08:29:16 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Cannot find definition of cdevsw_add() in source tree.
Message-ID:  <19971009082916.GN20024@uriah.heep.sax.de>
In-Reply-To: <Pine.SGI.3.95.971008200851.19883A-100000@shellx.best.com>; from mdean on Oct 8, 1997 20:10:24 -0700
References:  <Pine.SGI.3.95.971008200851.19883A-100000@shellx.best.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As mdean wrote:

> Where is cdevsw_add() defined, I have searched all .c and .h files
> in the source tree, but can only find a prototype.

nm /kernel | sort | more

...
f0118250 F kern_conf.o
f0118250 T _isdisk
f01183c4 T _chrtoblk
f01183f8 T _bdevsw_add
f0118480 T _cdevsw_add
f0118520 T _cdevsw_make
f01185c8 T _bdevsw_add_generic
...

(If you look into the file you'll realize why a quick grep doesn't
reveal the secret.)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971009082916.GN20024>