lkml.org 
[lkml]   [2012]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectFunction /base/core.c
From
drivers/base/core.c

static ssize_t show_uevent(struct device *dev, struct device_attribute *attr,
char *buf)
{
....

kset = top_kobj->kset;
if (!kset->uevent_ops || !kset->uevent_ops->uevent)
goto out;

/* respect filter */
- if (kset->uevent_ops && kset->uevent_ops->filter)
+ if (kset->uevent_ops->filter)
if (!kset->uevent_ops->filter(kset, &dev->kobj))
goto out;

env = kzalloc(sizeof(struct kobj_uevent_env), GFP_KERNEL);
if (!env)
return -ENOMEM;

...
}


\
 
 \ /
  Last update: 2012-11-30 05:21    [W:0.026 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site