kmsg: add ioctl for kmsg* devices operating on buffers 65/48465/7
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 21 May 2015 14:24:30 +0000 (16:24 +0200)
committerKazimierz Krosman <k.krosman@samsung.com>
Wed, 6 Apr 2016 11:15:54 +0000 (13:15 +0200)
commit4410cb7431950f42bf7c27eeb937a19ff2b5eceb
treeac683907860e3441ad7e3b243e199b9159b84c28
parentd65b897bf86fa1020b9c349c86a5c221013c36a9
kmsg: add ioctl for kmsg* devices operating on buffers

There is no possibility to clear additional kmsg buffers,
get size of them or know what size should be passed to read
file operation (too small size causes it to retrun -EINVAL).

Add following ioctls which solve those issues:
* KMSG_CMD_GET_BUF_SIZE
* KMSG_CMD_GET_READ_SIZE_MAX
* KMSG_CMD_CLEAR

Change-Id: I7ee4c54495f6c4fd1458fd2998ffae0f3a8866c0
Signed-off-by: Marcin Niesluchowski <m.niesluchow@samsung.com>
Documentation/ioctl/ioctl-number.txt
include/uapi/linux/kmsg_ioctl.h
kernel/printk/printk.c