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

Re: [rtl] Clunky




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
bionic@vassalboro.bu.edu 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 majordomo@rtlinux.org OR
> echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.org
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/
>