Create a folder in /dev using device_create() (solved)

Prashant Shah pshah.mumbai at gmail.com
Fri Jan 25 01:38:17 EST 2013


Hi,

After searching a lot figured out that to create a folder under /dev
is to use a '!' as separator instead of '/' in the "fmt" argument of
the device_create() call. This works with kernel 2.6.18 onwards.

"test!power" => /dev/test/power

Regards.



More information about the Kernelnewbies mailing list