login
Header Space

 
 

Re: Definition of the major number under OpenBSD

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: João Salvatti <salvatti@...>
Cc: Misc OpenBSD <misc@...>
Date: Thursday, September 13, 2007 - 3:48 pm

> In which OpenBSD file do I define the major number for devices (both

Noone builds new block devices anymore (in OpenBSD, we instead write
drivers which hide behind the scsi subsystem, since this is more
flexible).

As for strictly character devices, these are inserted per-architecture
into the cdevsw[] arrays in arch/ARCH/ARCH/conf.c.  At the same time,
/usr/src/etc/etc.ARCH/MAKEDEV* have to be modified to create the
device nodes.

There is no need to keep the major numbers in sync between different
architectures.  Actually because of many historical reasons, it is
impossible.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Definition of the major number under OpenBSD, João Salvatti, (Thu Sep 13, 3:22 pm)
Re: Definition of the major number under OpenBSD , Theo de Raadt, (Thu Sep 13, 3:48 pm)
Re: Definition of the major number under OpenBSD, João Salvatti, (Fri Sep 14, 7:37 am)
speck-geostationary