Home
last modified time | relevance | path

Searched hist:ee6a129dffe10ae30b45b5a744e7c0a056291d13 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/block/
H A Dioctl.cdiff ee6a129dffe10ae30b45b5a744e7c0a056291d13 Thu Nov 28 08:48:10 CST 2019 Arnd Bergmann <arnd@arndb.de> compat_ioctl: block: add blkdev_compat_ptr_ioctl

A lot of block drivers need only a trivial .compat_ioctl callback.

Add a helper function that can be set as the callback pointer
to only convert the argument using the compat_ptr() conversion
and otherwise assume all input and output data is compatible,
or handled using in_compat_syscall() checks.

This mirrors the compat_ptr_ioctl() helper function used in
character devices.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
/openbmc/linux/include/linux/
H A Dblkdev.hdiff ee6a129dffe10ae30b45b5a744e7c0a056291d13 Thu Nov 28 08:48:10 CST 2019 Arnd Bergmann <arnd@arndb.de> compat_ioctl: block: add blkdev_compat_ptr_ioctl

A lot of block drivers need only a trivial .compat_ioctl callback.

Add a helper function that can be set as the callback pointer
to only convert the argument using the compat_ptr() conversion
and otherwise assume all input and output data is compatible,
or handled using in_compat_syscall() checks.

This mirrors the compat_ptr_ioctl() helper function used in
character devices.

Reviewed-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>