Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6372

Creating a new directory in /dev using udev rule

$
0
0

This is the code snippet responsible for creating the device:

master_dev = device_create(dev_cl, NULL, MKDEV(major, minor), NULL, "synchmess");

My udev rule is the following:

KERNEL=="synchmess", NAME="/synch/synchmess", MODE="0444"

From my understanding, this rule should match against the device name given by the kernel module (synchmess) and create the /dev subdirectory "synch".However, the synchmess device shows under /dev with the correct permissions, but i can't seem to figure out how to create the directory.


Viewing all articles
Browse latest Browse all 6372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>