[lkml]   [2001]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: RFC: modules and 2.5
    Rusty Russell wrote:
    > In message <> you write:
    > > A couple things that would be nice for 2.5 is
    > > - let MOD_INC_USE_COUNT work even when module is built into kernel, and
    > > - let THIS_MODULE exist and be valid even when module is built into
    > > kernel
    > Hi Jeff,
    > What use are module use counts, if not used to prevent unloading?

    IMHO you should be free to bump the module reference count up and down
    as you wish, and be able to read the module reference count.

    If you make that assumption, then it becomes possible to use the module
    ref count as an internal reference counter, for device opens or
    something like that.

    In i810_rng.c it eliminated the need for an additional reference
    count... until I attempted to compile it into the kernel instead of as a
    module, for the first time :)


    Jeff Garzik | A recent study has shown that too much soup
    Building 1024 | can cause malaise in laboratory mice.
    MandrakeSoft |
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:17    [W:0.019 / U:14.096 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site