lkml.org 
[lkml]   [2008]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] uevent: handle duplicate uevent_var keys properly
Greg KH wrote:
> On Thu, Aug 28, 2008 at 06:31:02PM +0200, Tejun Heo wrote:
>> add_uevent_var() appends the specified variable whether the new entry
>> has duplicate key or not. This patch makes add_uevent_var() to
>> override the existing entry if an entry with the same key is added
>> later. This will be used by CUSE (character device in userland) to
>> fake hotplug events.
>
> Hm, do you have any pointers to CUSE, that sounds interesting.

I'm in the process of sending patches. I'll cc you on the actual postings.

> And how would this change interact with fake hotplug events?

CUSE creates actual devices but those devices are all cuse class
devices. To play nicely with sysfs/hal, the ADD/REMOVE uevents should
have about the same variables as the actual device including the
SUBSYSTEM, so that's where the overriding comes in. CUSE client tells
CUSE that it needs to set such such envs for uevents and CUSE overrides
uevents before sending it out so that sysfs/hal can be fooled.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2008-08-28 19:05    [W:0.035 / U:30.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site