Skip to contentSkip to conversation

Directory not removed when driver is unloaded.

DISCUSSION Frederick (Rick) A Niles 2 participants 2 messages Nov 29, 2005

lore
Share & tools
lore
#0 lore raw

OK first off let me state the disclaimer that I'm clueless about what I'm doing with udev. So please don't flame me too hard that I'm doing it all wrong.

Short description: I've managed to get udev to work very well for me with one exception. The directory that gets created for my devices under /dev does not get removed when the driver exits and then when the driver is reloaded the permission of that directory are wrong.

Long description:

I'm using a Fedora Core 3 system and I have added the minimal sysfs stuff to my driver. It's using the "10.FC3.7" version of the udev package.

/etc/udev/rules.d/90-foo.rules:
KERNEL="foo.bar", NAME="foo/bar"
KERNEL="foo.baz", NAME="foo/baz"
======

/etc/udev/permissions.d/90-foo.permissions:
foo/*:root:users:0666
foo:root:users:0755
======

(BTW, these aren't the real name for the driver, just for illustration)

First time I load the driver, the device files get created and the permissions are correct.

When I remove the driver the directory changes permission to 0000 and never changes again, even when I reload the driver.

The files are not removed as expected when the driver is unloaded.

So either:

(1) I'm doing something wrong with my rules and/or permissions file

or

(2) There was a bug in udev for this older version and hopefully it's
fixed now...

I appreciate any guidance you can give.

Thanks,
Rick Niles.

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw
Quoted 2 lines · Frederick (Rick) A Niles

(2) There was a bug in udev for this older version and hopefully it's
fixed now...

What exact version of udev are you using?

What does 'udevinfo -V' return?

And yes, upgrading to the latest version might be a good place to start :)

thanks,

greg k-h

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel