![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Simple question (for you guys, hard for me) | BkontheShell718 | Shell Programming and Scripting | 3 | 01-07-2008 11:48 AM |
| [question] hard exercise, help needed | EnioMarques | UNIX for Dummies Questions & Answers | 2 | 09-20-2007 11:22 PM |
| Hard Drive Question | Netghost | AIX | 0 | 08-24-2006 02:01 PM |
| Shell Coding question for any experts out there | dfran1972 | Shell Programming and Scripting | 4 | 01-12-2004 09:04 AM |
| Please Help.... Desperate need! Hard Question! | Sparticus007 | UNIX for Advanced & Expert Users | 1 | 01-11-2002 06:43 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
SunOS5.8 is a radical departure from SunOs4.X in many ways. one of the important differences is the handling of devices. Adding devices under SunOS4.x required a kernel reconfiguration, recompliation and reboot. Under SunOS5.X, this has changed with the ability to add some drivers on the fly. However, both systems still use the concept of major and minor numbers when dealing with devices.
What do major and minor numbers mean under both SunOS4.X and SunOS5.8? Told ya it was tricky.... Any experts out there?? -Michelle |
|
||||
|
All devices in UNIX are accessed as files. Providing this abstraction requires some pretty complicated programming in the kernel. The programs are called device drivers. Once you write a device driver, you must add it to the kernel and make it available to user processes to access the device in question. In the process of incorporating the device driver into the kernel, you add the driver entry points to the device switch table. The device switch table is basically a muti-dimensional array. The major number of a device is the index into the array to access the device driver entry points. The meaning of the device minor number depends on the device driver. It can be used anyway the driver writer wants to use it. However, in most cases, it is used to differentiate between multiple instances of the same type of device.
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|