Re: Clarifications about /dev devices

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: João <salvatti@...>
Cc: Misc OpenBSD <misc@...>
Date: Thursday, September 13, 2007 - 8:33 am

> I'd like to know why /dev/cd0a and /dev/rcd0a device files (at my

The kernel handles two kinds of device nodes: ``block'' devices and
``character'' devices. The major numbers of these devices are
platform-dependant, and must match the bdevsw[] and cdevsw[] arrays
in sys/arch///conf.c.

Storage devices can be accessed either as block devices or character
devices, hence they have one entry in each of these tables. Their major
numbers do not need to match since these are completely independant
numbering spaces.

Miod

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Clarifications about /dev devices, João Salvatti, (Thu Sep 13, 8:27 am)
Re: Clarifications about /dev devices, Miod Vallat, (Thu Sep 13, 8:33 am)
Re: Clarifications about /dev devices, João Salvatti, (Thu Sep 13, 9:18 am)