Questions tagged [device-node]
9 questions
7
votes
3 answers
How to convert between a dev_t and major/minor device numbers?
I'm trying to write a portable program that deals with ustar archives. For device files, these archives store the major and minor device numbers. However, the struct stat as laid out in POSIX only contains a single st_rdev member of type dev_t…

fuz
- 88,405
- 25
- 200
- 352
3
votes
1 answer
Linux - Device node name ends with '?' What does this mean?
I have a device driver for Zigbee RF4CE that initializes correctly by the kernel. However, when my user space application wants to open the device, I get the error:
Error: Opening device failed: No such file or directory
Doing an ls in the /dev…

Sudesh
- 141
- 5
3
votes
2 answers
Linux device node for sd card as mmcblk to access CSD register
I am trying to access the CSD (Card Specific Data) register on a SD card. The only way I know to do this is by having the linux system recognize it as a mmc device (Multi Media Card?) (eg. /dev/mmcblk0). Right now the device is being shown as a scsi…

ChrisVollo
- 157
- 1
- 3
- 15
2
votes
1 answer
Associating device node with physical disk manually
I am new to the Linux architecture, i was wondering how one can create a device file like sdb or sda and associate it with a physical disk in absence of udev, if it is possible. I have created a hard disk in VBOX now I am building a Linux system…

Chu
- 620
- 1
- 8
- 14
1
vote
0 answers
read()/select() error and possible recovery
My embedded system runs Linux OS. The system has two joysticks connected to it through USB.
My program should read any of these two devices when they are ready and pass the joystick key information to upper layer.
My program does the following. …

user2555646
- 81
- 3
1
vote
1 answer
Failed to open device
I am trying to write on the /dev/simulator file.
I have created this device by using:
# mknod /dev/simulator c 60 0
# chmod 666 /dev/simulator
# ls -l /dev/simulator
crw-rw-rw- 1 root root 60, 0 2012-05-22 19:22 /dev/simulator
I am trying…

Raheel
- 133
- 2
- 5
- 10
0
votes
0 answers
How do Linux Device Trees get processed
I understand that Linux device trees explain about the different hardware component settings in a system.
The bootloader will load the kernel and the device tree. How exactly does the device tree information then get parsed by the kernel and…

Engineer999
- 3,683
- 6
- 33
- 71
0
votes
1 answer
Same device node for different devices: changing the value of one node will affect another - how to fix it?
I have one question about Linux kernel device node ,the nodes example created are in the same class with different devices but the node names are the same. If I change the value of one node, another will be changed also: How to prevent…

Michael Chen
- 1
- 1
0
votes
1 answer
How To: Obtain the device node of the device containing a file, given the file descriptor
Simple as that. I have the file descriptor of an opened file, and I want to know the node name of the device which contain it.

Raydel Miranda
- 13,825
- 3
- 38
- 60