[lkml]   [2007]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: blank filenames in /sys/modules, kernel 2.6.21
    On Fri, 8 Jun 2007, Chuck Ebbert wrote:

    > We just found a file with this name in 2.6.21:
    > Directory name: /sys/module/nousb/parameters
    > File name: ""
    > IOW the file has an empty name. Is this intentional?
    > It sure confuses updatedb...

    that appears to be the result of:

    $ grep -r __module_param_call *
    drivers/usb/core/usb.c:__module_param_call("", nousb, param_set_bool, param_get_bool, &nousb, 0444);
    include/linux/moduleparam.h:#define __module_param_call(prefix, name, set, get, arg, perm) \
    include/linux/moduleparam.h: __module_param_call(MODULE_PARAM_PREFIX, name, set, get, arg, perm)

    and from drivers/usb/core/usb.c:

    /* format to disable USB on kernel command line is: nousb */
    __module_param_call("", nousb, param_set_bool, param_get_bool, &nousb, 0444);

    one has to wonder about the value of a macro that is invoked only
    once throughout the entire tree.

    Robert P. J. Day
    Linux Consulting, Training and Annoying Kernel Pedantry
    Waterloo, Ontario, CANADA
    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: 2007-06-08 20:11    [W:0.020 / U:152.448 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site