Sponsored Content
Full Discussion: HP-UX 10.20 devices
Operating Systems HP-UX HP-UX 10.20 devices Post 14662 by Perderabo on Monday 4th of February 2002 03:47:27 PM
Old 02-04-2002
On HP-UX 10.20, both /dev/zero and /dev/null have the same major number. That means that the same exact driver is invoked when either file is opened. That driver will look at the minor number which is how it know to behave differently. This driver is a psuedo-driver since it controls no hardware.

A read to /dev/null returns end of file.

A read to /dev/zero succeeds and returns all zeroes.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Unix devices

Hi I am trying to determine the access to unix devices. I found the follow access description which I have been told is a symbolic link and is not the actual file. I was also told that all symbolic links will have rwxrwxrwx access. kmem: lrwxrwxrwx 1 root 27 May 28 16:06 /dev/kmem ->... (2 Replies)
Discussion started by: GW01
2 Replies

2. Red Hat

USB Devices

I am trying to get a flash card reader to work with my machine. My question is, are all of my USB ports screwed up? Do I need to buy a seperate USB controller? I does not appear that the onboard USB ports work. In trying to get it to work, I typed cat /proc/scsi/scsi and got this: # cat... (2 Replies)
Discussion started by: davidkretsch
2 Replies

3. Solaris

Meta Devices

I have added a sun storage array from a faiulty server onto a new server and copied the md.conf files etc. I can now access the /dev/md/dsk file systems, but I want to delete some metadevices that do not exist (it still thinks the 0 and 1 (root /var /export) disk are mirrored. How do I do this? (8 Replies)
Discussion started by: ozzmosiz
8 Replies

4. Solaris

devices in solaris 10

i want to use the devfsadm command and understand its function (3 Replies)
Discussion started by: bondoq
3 Replies

5. Solaris

what is /devices/pseudo/ ??

Hi all, what does this mean? if then <something> fi here is what i know.. it checks if the specified argument no($devid) in some function call is made into a block device and then proceeds with the execution of the loop. However am not understand what lofi@0:means? also is there... (3 Replies)
Discussion started by: wrapster
3 Replies

6. UNIX for Dummies Questions & Answers

passthrough devices vs. named devices

I am having trouble understanding the difference between a passthrough device and a named device and when you would use one or the other to access equipment. As an example, we have a tape library and giving the command "camcontrol devlist" gives the following output: akx# camcontrol... (1 Reply)
Discussion started by: thumper
1 Replies

7. UNIX for Dummies Questions & Answers

/dev X /devices

Hi folks, I am trying to learn Unix based in Linux... In Linux, in /Dev are files related to cards, mouse, etc.. how about Unix? What is the difference between /Dev and /Devices? Thanks, Fernanda (0 Replies)
Discussion started by: ffpradella
0 Replies

8. HP-UX

list of devices

Hi, I need to rediracte all the names of the devices (only disks) to a file. Thanks:confused: (3 Replies)
Discussion started by: yoavbe
3 Replies

9. Programming

Raw devices in C

Hi guys. what is the benefits of using raw devices in programming? which applications mostly use raw devices? how can i use raw devices in C programs? is there any system calls or library functions? (1 Reply)
Discussion started by: majid.merkava
1 Replies

10. Red Hat

Raw Devices

Can you please modify my script. This script is not working for i in /dev/sdf do /bin/raw /dev/raw/`/bin/basename ${i}` ${i} /bin/sleep 2 /bin/chown orasm:ordba /dev/raw/`/bin/basename ${i}` /bin/chmod 660... (9 Replies)
Discussion started by: karthik9358
9 Replies
clone(7)						 Miscellaneous Information Manual						  clone(7)

NAME
clone - opens a major and minor device pair on a STREAMS driver DESCRIPTION
The driver is a "pass through" device driver that allows other drivers to select unique minor device numbers on each In effect, the driver passes an open operation through to the other driver. This mechanism allows for multiple instantiations of a driver, each with a different minor number, through a single device file. When the driver is opened, it is passed a major and minor device number by the operating system. The major number is the driver's major number (72), and the minor number is the major number of the driver the user wishes to clone (referred to here as the target driver). The driver calls the open routine of the target driver with the flag which specifies a clone open. The target driver's open routine allocates an unused minor number. The target driver must use to make a new device number for the newly created device, and must set to the new device number returned by The new device number is returned to the open through The open then returns to the user a file descriptor that points to the new instantiation of the target driver. The driver is an example of a clonable driver. Notes It is not possible to do multiple opens of a device with the same major and minor number using the driver. This is because the driver is only given the major number of the driver to be cloned, and that driver will then select a minor number which has not been opened. When called with a pathname which corresponds to the clonable driver, will return different results than when it is called on a file descriptor returned from of the same clonable driver pathname. RETURN VALUES
If the driver is given an invalid minor number, or if the driver indicated is not a clonable driver, the fails and is set to [ENXIO]. SEE ALSO
open(2), fstat(2). clone(7)
All times are GMT -4. The time now is 12:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy