Have you explored the possibility of incrementing the module use count
whenever a callback function in a module is registered, and then
decrementing the use count later?

On Tue, 4 Dec 2001
[EMAIL PROTECTED] wrote:

> Hey crew,
>
> I'm running an rtl control system, the heart of which is a thread that
> calls a number of functions and sums their return values. Rather than name
> the functions directly, I have them indexed in a function array, and I set
> the specific values of the array from shared memory. This allows me to
> add and remove various control algorithms, without having to keep all
> possible control algorithms (100s of real time modules) permanently
> loaded.
>
> But it's clunky - because when I insert a new module, rtlinux doesn't know
> about the thread's dependency upon the control functions within that
> module, so if I accidentally type 'rmmod control_module' before 'rmmod
> my_rt_thread', the system promptly locks up.  In the interest of letting
> naive user play with this without freezing the system so easily, I was
> wondering if there was a less clunky way? Is it possible to modify the
> dependencies directly?
>
> -Chuck
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/

Reply via email to