kmsg: add ioctl for kmsg* devices operating on buffers 83/60883/3
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Thu, 21 May 2015 14:24:30 +0000 (16:24 +0200)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Fri, 11 Mar 2016 00:51:02 +0000 (16:51 -0800)
commit50441b316ad0a7db9552fcacddbbd073cf32d7a0
tree1cbff0e857ff5cf5382c3b2081ddfcdfb53372b6
parenta07f4b2c1fcdb6152ffd8e61a26eb9191e982814
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

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