MAKEDEV(8) System Manager's Manual MAKEDEV(8)NAME
MAKEDEV, DESCRIBE - make/describe device files
SYNOPSIS
MAKEDEV [-n] key ...
DESCRIBE [device] ...
DESCRIPTION
MAKEDEV may be used to create the device files normally found in the /dev directory. The key arguments are simply the names of the devices
you want. MAKEDEV knows about all supported devices and will create them in the current directory with the proper owner and mode. For
many devices MAKEDEV will not only create the device you want, but also the devices related to it that you will probably want too. Naming
one floppy device will create all floppy devices for the same drive for instance.
Call MAKEDEV without arguments to see a list of keys that it understands. Then use the -n flag to make the script echo the commands it
will execute the next time when you call it without that flag.
The special key std must be given alone to MAKEDEV. This key will create all standard devices.
The command DESCRIBE will give you a one-line description of a given device. It will by default list all devices in /dev.
SEE ALSO mknod(8).
BUGS
MAKEDEV's eagerness to create devices may cause many "File exists" errors from mknod.
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
MAKEDEV(8)
Check Out this Related Man Page
MAKEDEV(3) Linux Programmer's Manual MAKEDEV(3)NAME
makedev, major, minor - manage a device number
SYNOPSIS
#define _BSD_SOURCE
#include <sys/types.h>
dev_t makedev(int maj, int min);
int major(dev_t dev);
int minor(dev_t dev);
DESCRIPTION
A device ID consists of two parts: a major ID, identifying the class of the device, and a minor ID, identifying a specific instance of a
device in that class. A device ID is represented using the type dev_t.
Given major and minor device IDs, makedev() combines these to produce a device ID, returned as the function result. This device ID can be
given to mknod(2), for example.
The major() and minor() functions perform the converse task: given a device ID, they return, respectively, the major and minor components.
These macros can be useful to, for example, decompose the device IDs in the structure returned by stat(2).
CONFORMING TO
The makedev() major() and minor() functions are not specified in POSIX.1, but are present on many other systems.
NOTES
These interfaces are defined as macros. Since glibc 2.3.3, they have been aliases for three GNU-specific functions: gnu_dev_makedev(3),
gnu_dev_major(3), and gnu_dev_minor(3). The latter names are exported, but the traditional names are more portable.
SEE ALSO mknod(2), stat(2)COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2008-12-01 MAKEDEV(3)
FreeBSD 4.5
i installed my sound drivers (which are onboard) with the following lines in my kernel
device pcm
options PNPBIOS
then cd /dev
sh MAKEDEV snd0
output from cat /dev/sndstat show the devicedriver (correct one)
ok this works nice
untill i enter my kde and want to play a... (1 Reply)
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)
How can I display the devices attached to my computer through the command line? And, how do I get information about each device listed? I'm looking to make sure that my DLT drive is recognized by the computer.
Using FreeBSD, if that helps.
Thanks! (1 Reply)
hi !
i have generated a RSA key successfully.
But wen i execute the script the " df -k;hostname" is displayed
only for the first device in the ip.txt.
i have several devices in the ip.txt 1 ip a line . . . i wanna ssh each ip
in the ip.txt n execute "df -k;hostname"
wast the problem... (1 Reply)
I need to have my scripts import volume groups and mknod devices files. I have most of the script working but the device file needs to be in the format 0x??0000 (where the question marks are my HEX representations of the volume group number. I have the code below and the output it produces which... (2 Replies)
hi.i want to create a bash script called countfiles.sh, that will count the pack of files under the current file that their term satisfy a specific pattern. The script must show the total per file or on the whole.
thank tou (4 Replies)
What I'm Doing:
I'm developing a python script that scans for all storage devices and their respective sizes. Python does not have a command that returns the /dev paths of storage devices or the respective sizes. So, I need to pipe a shell command to python.
The Problem:
In root, I've used... (4 Replies)
Hello everyone.
I am new to creating make files. I have been able to create simple makefiles for those applications which do not involve database but am unable to create for the ones that do involve database. When I run that make file, it just deletes the .exe file of that application from the... (6 Replies)
Please explain me the difference between /dev and devices..
Googled info is -
/dev - where logical device names stores here
devices - physical device info stores here...
Could any one explain me.. the real difference and major one (3 Replies)
Hi Guys,
this is the scenario:
ubuntu pc and I have 10 wireless devices that I need to check their firmware version.
I would like to create a script that it will ask me IP, after I enter it, I hit enter then it will show me the version of the firmware.
this is what i do.
ssh... (9 Replies)
I'm currently looking into ways to integrate the Telegram API into the forums:
Telegram Bots - Bot Code Examples
I'm thinking, first off, to use the Telegram API to get forum alerts and notifications (to Bot or Not?).
Second, I thinking of ways to more deeply integrate Telegram into the... (5 Replies)
I have an old p5 570 ibm server that consists of two enclosure and make by FC1847 cable, single 8 processors server.
So, after one part of it, accidentally was turned off, I lost all devices from it.
Now they all in defined mode, for example:
dodo:/# lsdev -Cc processor
proc0 Available 00-00... (8 Replies)