DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th May 2010
Android1's Avatar
Android1 Android1 is offline
Fdisk Soldier
 
Join Date: Mar 2009
Posts: 60
Question OpenBSD /dev Questions

I recently installed OpenBSD 4.6 on an old laptop, and I am finding the /dev directory to be somewhat confusing. It seems as if there are device files which do not have corresponding devices or partition tied to them. Does this have something to do with the lack of udev or devfs?

Also, I cannot seem to find a good deal of my devices. For example, I have an Intel NIC card which uses the fxp driver, and the card works perfectly, but I cannot find an fxp0 device file in /dev. The same goes for my Atheros wireless card and ath0.

If someone here could answer my questions or point me to documentation that answers them, I would greatly appreciate it.
Reply With Quote
  #2   (View Single Post)  
Old 15th May 2010
ocicat ocicat is offline
Administrator
 
Join Date: Apr 2008
Posts: 3,318
Default

Quote:
Originally Posted by Android1 View Post
...I have an Intel NIC card which uses the fxp driver, and the card works perfectly, but I cannot find an fxp0 device file in /dev. The same goes for my Atheros wireless card and ath0.
OpenBSD != FreeBSD.

These drivers are compiled in the kernel. You should find them listed in dmesg(8) output.
Reply With Quote
  #3   (View Single Post)  
Old 15th May 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

OpenBSD doesn't have a dynamic /dev filesystem, it is just a directory full of special device nodes generated but a script MAKEDEV(8) which itself runs mknod(8), this is how it was handled traditionally in Unix.. and personally I find it cleaner.

This requires some manual intervention if a device node does not exist, it's not overly difficult, and in most cases the installer will have generated a fair default.

Network interfaces do not have device nodes, you have 'block' and 'character' devices for disks, serial/tty interfaces, and other special devices that need to be represented and accessible by userland.

A framework exists called BPF(4), but I don't believe it's of any importance to you.
Reply With Quote
  #4   (View Single Post)  
Old 15th May 2010
Android1's Avatar
Android1 Android1 is offline
Fdisk Soldier
 
Join Date: Mar 2009
Posts: 60
Default

Quote:
Originally Posted by BSDfan666 View Post
OpenBSD doesn't have a dynamic /dev filesystem, it is just a directory full of special device nodes generated but a script MAKEDEV(8) which itself runs mknod(8), this is how it was handled traditionally in Unix.. and personally I find it cleaner.

This requires some manual intervention if a device node does not exist, it's not overly difficult, and in most cases the installer will have generated a fair default.

Network interfaces do not have device nodes, you have 'block' and 'character' devices for disks, serial/tty interfaces, and other special devices that need to be represented and accessible by userland.

A framework exists called BPF(4), but I don't believe it's of any importance to you.
That completely answers my question, and that is very interesting. I will have to study the history further. Thank you very much!
Reply With Quote
Reply

Tags
/dev, openbsd

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two PF questions sparker OpenBSD Security 5 9th November 2009 08:01 AM
Some Questions ?? ultranothing OpenBSD Security 6 4th September 2009 04:59 PM
FTP ruleset questions hitete OpenBSD Security 2 25th November 2008 05:30 PM
A few questions on OpenBSD? php111 OpenBSD General 24 1st November 2008 09:18 AM
Some questions about installation of OpenBSD aleunix OpenBSD Installation and Upgrading 20 15th June 2008 11:57 AM


All times are GMT. The time now is 11:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick