tech-kern archive

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

Re: sysmon_envsys race (Julian Coleman) writes:

>The driver runs sysmon_envsys_destroy() in its detach routine.

The driver should call sysmon_envsys_unregister():

"     To unregister a driver previously registered with the sysmon_envsys
     framework, the sysmon_envsys_unregister() function must be used.  If
     there were monitoring events registered for the driver, they all will be
     destroyed before the device is unregistered and its sensors are detached.
     Finally the sysmon_envsys object will be freed, so there's no need to
     call sysmon_envsys_destroy().

                                Michael van Elst
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index