STRUCT UACCE_OPS(9)
NAME π
struct uacce_ops β uacce device operations. Okay so this is struct uacce_ops(9), straight out of the Kernel API Manual, bestie. It's giving the ops struct for a uacce device, and we are going to go through every single member like the responsible Unix girlies we are. π
SYNOPSIS β¨
Here's the struct in all its glory β literally, no edits, no cap:
struct uacce_ops {
int (*get_available_instances)(struct uacce_device *uacce);
int (*get_queue)(struct uacce_device *uacce, unsigned long arg,
struct uacce_queue *q);
void (*put_queue)(struct uacce_queue *q);
int (*start_queue)(struct uacce_queue *q);
void (*stop_queue)(struct uacce_queue *q);
int (*is_q_updated)(struct uacce_queue *q);
int (*mmap)(struct uacce_queue *q, struct vm_area_struct *vma,
struct uacce_qfile_region *qfr);
long (*ioctl)(struct uacce_queue *q, unsigned int cmd, unsigned long
arg);
enum uacce_dev_state (*get_isolate_state)(struct uacce_device
*uacce);
int (*isolate_err_threshold_write)(struct uacce_device *uacce, u32
num);
u32 (*isolate_err_threshold_read)(struct uacce_device *uacce);
};
Members π
Member-by-member, because every single one matters:
get_available_instancesβ gets the available instances left of the device. β¨get_queueβ gets a queue from the device. πput_queueβ frees a queue to the device. π¦start_queueβ makes the queue start work afterget_queue. πΈstop_queueβ makes the queue stop work beforeput_queue. πis_q_updatedβ checks whether the task is finished. βmmapβ mmaps addresses of the queue to user space. π«Άioctlβ does ioctl for user space users of the queue. π₯get_isolate_stateβ gets the device state after the isolate strategy is set. πisolate_err_threshold_writeβ stores the isolate error threshold to the device. πisolate_err_threshold_readβ reads the isolate error threshold value from the device. π
SEE ALSO π¦
Kernel file ./include/linux/uacce.h is the spot, and then go say hi to struct uacce_qfile_region(9), struct uacce_interface(9), struct uacce_queue(9), and struct uacce_device(9). Iykyk. π§
Signed, sealed, slayed: source/version ./include/linux, date October 2026, and this page is struct uacce_ops(9). Mwah πβ¨
π¦ 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