Re: [RFC] Migrating net/sched to new module interface

From: Roman Zippel (zippel@linux-m68k.org)
Date: Fri Feb 14 2003 - 19:51:52 EST


Hi,

On Fri, 14 Feb 2003, Werner Almesberger wrote:

> I though we were talking about
>
> static data_used_by_callbacks;
> ...
> register_foo(&stuff_with_callbacks);
> ...
> unregister_foo(&stuff_with_callbacks);
> make_unusable(&data_used_by_callbacks)
> ...
> /* oops, we just got a callback */
>
> ("data_used_by_callbacks" could be a pointer to kmalloc'ed
> memory, etc.)
>
> This kind of problem seems to be understood well enough.

Yes, and now compare how the solutions differ when the data is static and
when it's allocated.

bye, Roman

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Feb 15 2003 - 22:00:59 EST