Date: Sun, 18 Mar 2001 00:44:58 -0800 From: "Ted Mittelstaedt" <tedm@toybox.placo.com> To: "Edward" <edward_gess@hotmail.com>, <freebsd-questions@FreeBSD.ORG> Subject: RE: Devices Message-ID: <008701c0af87$b6c3b9a0$1401a8c0@tedm.placo.com> In-Reply-To: <3AB47A09.A88223B7@hotmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Here's a helpful abstraction to think about it, although it's not exactly correct: The /dev/whatever files are just normal files. When the user gives an instruction that makes a program or whatever attempt to open or otherwise access them, the kernel sees this call and diverts it into the device driver that is compiled into the kernel, and corresponds with the device name. To find out about devices in your kernel, do a "dmesg" and look at the names on the left, then start running man on them. For example, "man ata" tells about the atapi driver, man sio tells about the serial driver, etc. Ted Mittelstaedt tedm@toybox.placo.com Author of: The FreeBSD Corporate Networker's Guide Book website: http://www.freebsd-corp-net-guide.com >-----Original Message----- >From: owner-freebsd-questions@FreeBSD.ORG >[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Edward >Sent: Sunday, March 18, 2001 1:04 AM >To: freebsd-questions@FreeBSD.ORG >Subject: Devices > > > Hello all > I wanted to ask, how FreeBSD works with device drivers??? For >example when I doing "ls /dev" where all those files are??? > Is it a static array in the kernel??? In a word where to find more >information on this? In which source files can I find this??? > > Many thanks in advance - Ed > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008701c0af87$b6c3b9a0$1401a8c0>