Re: [PATCH 0/8] introduce dynamic device creation/removal

2015-03-02 Thread Alan Cox
> > This is a long term plan, of course, but I'd like to see sysfs functions go > > away > > in a year or so. What do you think? > > hoo boy. Creating a /dev node and doing ioctls on it is really old > school. So old school that I've forgotten why we don't do it any more. > > Hopefully Alan ca

Re: [PATCH 0/8] introduce dynamic device creation/removal

2015-02-27 Thread Andrew Morton
On Sat, 28 Feb 2015 12:34:15 +0900 Sergey Senozhatsky wrote: > On (02/27/15 14:51), Andrew Morton wrote: > > hoo boy. Creating a /dev node and doing ioctls on it is really old > > school. So old school that I've forgotten why we don't do it any more. > > > > Hopefully Alan can recall the thin

Re: [PATCH 0/8] introduce dynamic device creation/removal

2015-02-27 Thread Sergey Senozhatsky
On (02/27/15 14:51), Andrew Morton wrote: > hoo boy. Creating a /dev node and doing ioctls on it is really old > school. So old school that I've forgotten why we don't do it any more. > > Hopefully Alan can recall the thinking? > perhaps, something like static struct class_attribute zram_cla

Re: [PATCH 0/8] introduce dynamic device creation/removal

2015-02-27 Thread Sergey Senozhatsky
On (02/28/15 10:33), Sergey Senozhatsky wrote: > > hoo boy. Creating a /dev node and doing ioctls on it is really old > > school. So old school that I've forgotten why we don't do it any more. > > > > Hopefully Alan can recall the thinking? > > oh. I thought this is how loop control works, and

Re: [PATCH 0/8] introduce dynamic device creation/removal

2015-02-27 Thread Sergey Senozhatsky
On (02/27/15 14:51), Andrew Morton wrote: > hoo boy. Creating a /dev node and doing ioctls on it is really old > school. So old school that I've forgotten why we don't do it any more. > > Hopefully Alan can recall the thinking? oh. I thought this is how loop control works, and ioctl there doesn

Re: [PATCH 0/8] introduce dynamic device creation/removal

2015-02-27 Thread Andrew Morton
On Thu, 26 Feb 2015 23:10:35 +0900 Sergey Senozhatsky wrote: > Hello, > > this patchset introduces dynamic (on demand) zram device add-remove > functionality via /dev/zram-control interface. Two ioctl commands are > defined as of now (accessible in user-space via new zram.h header file): > -- Z

[PATCH 0/8] introduce dynamic device creation/removal

2015-02-26 Thread Sergey Senozhatsky
Hello, this patchset introduces dynamic (on demand) zram device add-remove functionality via /dev/zram-control interface. Two ioctl commands are defined as of now (accessible in user-space via new zram.h header file): -- ZRAM_CTL_ADD add new device (generates device_id automatically or use