History

cxl/mem: Add basic IOCTL interface

Add a straightforward IOCTL that provides a mechanism for userspace to query the supported memory device commands. CXL commands as they appear to userspace are described as part of the UAPI kerneldoc. The command list returned via this IOCTL will contain the full set of commands that the driver supports, however, some of those commands may not be available for use by userspace. Memory device commands first appear in the CXL 2.0 specification. They are submitted through a mailbox mechanism specified in the CXL 2.0 specification. The send command allows userspace to issue mailbox commands directly to the hardware. The list of available commands to send are the output of the query command. The driver verifies basic properties of the command and possibly inspect the input (or output) payload to determine whether or not the command is allowed (or might taint the kernel).

Ben Widawsky committed 5 years ago

Commit 583fa5e1 parent b39cb105 files · +452 −1Browse files

Showing the changes to Documentation/userspace-api (1 of 5 files). Show all

Unified · Split

Documentation/userspace-api/ioctl/ioctl-number.rst+1−0
@@ -352,6 +352,7 @@ Code Seq# Include File Comments · 351 unmodified lines
352 <mailto:michael.klein@puffin.lb.shuttle.de>352 <mailto:michael.klein@puffin.lb.shuttle.de>
3530xCC 00-0F drivers/misc/ibmvmc.h pseries VMC driver3530xCC 00-0F drivers/misc/ibmvmc.h pseries VMC driver
3540xCD 01 linux/reiserfs_fs.h3540xCD 01 linux/reiserfs_fs.h
3550xCE 01-02 uapi/linux/cxl_mem.h Compute Express Link Memory Devices
3550xCF 02 fs/cifs/ioctl.c3560xCF 02 fs/cifs/ioctl.c
3560xDB 00-0F drivers/char/mwave/mwavepub.h3570xDB 00-0F drivers/char/mwave/mwavepub.h
3570xDD 00-3F ZFCP device driver see drivers/s390/scsi/3580xDD 00-3F ZFCP device driver see drivers/s390/scsi/

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t