]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sed-opal: add IOC_OPAL_GET_SUM_STATUS ioctl.
authorOndrej Kozina <okozina@redhat.com>
Fri, 6 Feb 2026 14:18:03 +0000 (15:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Mar 2026 20:29:59 +0000 (14:29 -0600)
commit0cc9293bccb234552b81c3ebc074f5839f019e01
tree245285add5a45148fd09f23bb492a3eb4d4576e1
parent661025cdbc976eadbdfb4c8fcf6d4ead5c67e645
sed-opal: add IOC_OPAL_GET_SUM_STATUS ioctl.

This adds a function for retrieving the set of Locking objects enabled
for Single User Mode (SUM) and the value of the
RangeStartRangeLengthPolicy parameter.

It retrieves data from the LockingInfo table, specifically the
columns SingleUserModeRanges and RangeStartLengthPolicy, which
were added according to the TCG Opal Feature Set: Single User Mode,
as described in chapters 4.4.3.1 and 4.4.3.2.

Signed-off-by: Ondrej Kozina <okozina@redhat.com>
Reviewed-and-tested-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/sed-opal.c
include/linux/sed-opal.h
include/uapi/linux/sed-opal.h