lkml.org 
[lkml]   [2008]   [Nov]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/5] CUSE: implement CUSE - Character device in Userspace
Miklos Szeredi wrote:
> On Thu, 20 Nov 2008, Tejun Heo wrote:
>> diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h
>> index 0be9245..d4dcca8 100644
>> --- a/include/linux/miscdevice.h
>> +++ b/include/linux/miscdevice.h
>> @@ -28,6 +28,7 @@
>> #define MPT_MINOR 220
>> #define HPET_MINOR 228
>> #define FUSE_MINOR 229
>> +#define CUSE_MINOR 230
>
> This doesn't work: device numbers have to be allocated by LANANA.

My last attempt at LANANA for extended devt didn't get me anywhere and
I'm not sure LANANA is handling miscdevice minors at all. If you go
through the tree, there are quite a few duplicate allocations including
FUSE_MINOR. At any rate, we can definitely try LANANA.

> But maybe we can get away with a dynamic number, now that everyone
> uses udev?

It would still be nice to have static /dev/cuse and trying to open it
can trigger "modprobe cuse". It's not like we're short of device number
space anyway.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2008-11-22 06:09    [W:0.112 / U:0.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site