sysctl: add proc_do_large_bitmap
authorOctavian Purdila <opurdila@ixiacom.com>
Wed, 5 May 2010 00:26:55 +0000 (00:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 May 2010 06:28:39 +0000 (23:28 -0700)
commit9f977fb7ae9ddf565b4800854212fb9a1ed6c2ea
tree87c88ca344134f5935ec9efc0a17ee66eddb7e51
parent00b7c3395aec3df43de5bd02a3c5a099ca51169f
sysctl: add proc_do_large_bitmap

The new function can be used to read/write large bitmaps via /proc. A
comma separated range format is used for compact output and input
(e.g. 1,3-4,10-10).

Writing into the file will first reset the bitmap then update it
based on the given input.

Signed-off-by: Octavian Purdila <opurdila@ixiacom.com>
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sysctl.h
kernel/sysctl.c