changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / lisp/ffi/uring/register.lisp

changeset 698: 96958d3eb5b0
parent: b9cd591b9c10
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
1 ;;; uring/register.lisp --- IO Register syscalls
2 
3 ;;
4 
5 ;;; Code:
6 (in-package :uring)
7 
8 (defconstant +io-probe-count+ 256)
9 
10 (defstruct io-probe
11  (probe (io-uring-get-probe) :type (alien io-uring-probe*))
12  (ops (make-array #.+io-probe-count+)
13  :type (array (alien io-uring-probe-op) (#.+io-probe-count+))))
14 
15 ;; op-supported-p
16 
17 ;; An allowed feature of io_uring. Set allowed features with register_restrictions.
18 (defstruct io-restriction (restriction (make-alien io-uring-restriction) :type (alien (* io-uring-restriction))))
19 
20 ;; register-op, sqe-op, sqe-flags-allowed, sqe-flags-required
21 
22 ;; used with register_files_update to skip file-descriptors.
23 (defconstant +io-skip-file+ ioring-register-files-skip)