lkml.org 
[lkml]   [2004]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [patch] kernel sysfs events layer
    On Fri, Sep 10, 2004 at 04:54:09PM -0700, Greg KH wrote:
    > To send an event, the user needs to pass the kobject, a optional
    > sysfs-attribute and the signal string to the following function:
    >
    > kobject_uevent(const char *signal,
    > struct kobject *kobj,
    > struct attribute *attr)

    Sorry I missed the flare up of this topic. What about events for which
    there is no associated kobject?

    why is the kobject argument not first? Seems weird..

    What happened to a formatted string argument? The signal argument can
    become the pre-formatted string, and someone can provide a wrapper
    that takes a printf() like format and args.
    kobject_uevent_printf(kobj, "something bad: 0x%08x", err);

    Tim
    -
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:06    [W:0.021 / U:0.592 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site