Re: udev rule, when RUN script is invoked?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 21, 2018 at 03:36:44PM -0800, Alexander Ivanov wrote:
> Hi All,
> 
> I have udev rule defined on a
> 
> DEVPATH="/dev/mydev0",..., ACTION="remove", ..., RUN+="/path/to/script"
> 
> When does /path/to/script is executed in respect to module's remove() and exit() ?

A module's lifecycle is different from a device's lifecycle, right?

There is no remove() call for a module, only for a driver subsystem, so
be careful as to what exactly you are referring to here.

Hopefully, all devices "owned" by the module should be removed from the
kernel before the module is unloaded, so that should help you out here.

Also note that modules are never automatically unloaded, so that is
never a normal operation in the system.

what exactly are you trying to do here with your udev script?

thanks,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]

  Powered by Linux