> About a year ago I remember having tried to make BLINK_IDE a sysctl option.
>
> It was very simple to replace the compilation option (#define) with a
> variable.  The problem I had (and I didn't succeed to solve it) is how
> to link this variable to a sysctl option :o(  Also, I asked myself about

Look at (for instance) therm_adt746x driver source for examples.

> how can I avoid the following race condition: when someone modify the
> sysctl option, the led is on state on.

Postpone the actual state change until the time when the LED gets switched
off again, then disable the whole thing.

        Michael


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to