set_exclusive_cxl_commands(9)
π set_exclusive_cxl_commands π
okay bestie, welcome to the set_exclusive_cxl_commands(9) page from the Kernel API Manual β¨ this one is short, iconic, and very βlock the door, weβre being exclusiveβ energy: it atomically disables user cxl commands, periodt.
β¨ NAME β¨
set_exclusive_cxl_commands β atomically disable user cxl commands π
π SYNOPSIS π
void set_exclusive_cxl_commands (struct cxl_memdev_state *mds , unsigned long *cmds );
π¦ ARGUMENTS π¦
mdsβ the device state to operate on, bestie. Itβs thestruct cxl_memdev_state *main character here.cmdsβ bitmap of commands to mark exclusive. Yep, theunsigned long *list of command IDs getting the exclusive treatment π
πΈ DESCRIPTION πΈ
okay so hereβs the vibe: this function grabs cxl_memdev_rwsem in write mode to flush in-flight invocations of the ioctl path, and then it disables future execution of commands with the command ids set in cmds. all atomically. no cap, thatβs the whole flex π₯
π SEE ALSO π
- Kernel file
./drivers/cxl/core/memdev.c cxl_set_capacity(9)clear_exclusive_cxl_commands(9)cxl_mem_get_fw_info(9)cxl_mem_activate_fw(9)cxl_mem_abort_fw_xfer(9)
byeee π«Ά source/version: ./drivers/cxl/core β date: October 2026 β page: set_exclusive_cxl_commands(9) πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms