vm_device_ops struct
#include <vecmat/device.h>
Backend function table.
Every slot is required unless marked.
ctx is the pointer given to vm_. q is the native queue (NULL when queue_ is NULL). Ranges and counts are checked before a slot is called, and only supported (op, dtype) pairs reach submit. Slots return VM_ or a negative code.
Public variables
- size_t struct_size
sizeof(vm_device_ops)the module was built with.- uint32_t version
VM_.DEVICE_ OPS_ VERSION - void(* info
- int(* supports
- int(* buffer_create
- int(* buffer_wrap
- Optional; NULL makes
vm_unsupported.buffer_ wrap() - void(* buffer_destroy
wrappedis nonzero forbuffer_buffers; never free their host memory.wrap - int(* queue_create
- Optional pair; NULL means the device needs no queue state.
- void(* queue_destroy
- int(* write
- int(* read
- int(* copy
- int(* submit
- int(* finish