STRUCT UACCE_OPS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 after get_queue. 🌸
  • stop_queue β€” makes the queue stop work before put_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