linux/Documentation/userspace-api
Elizabeth Figura b46271ec40 ntsync: Introduce NTSYNC_IOC_CREATE_SEM.
This corresponds to the NT syscall NtCreateSemaphore().

Semaphores are one of three types of object to be implemented in this driver,
the others being mutexes and events.

An NT semaphore contains a 32-bit counter, and is signaled and can be acquired
when the counter is nonzero. The counter has a maximum value which is specified
at creation time. The initial value of the semaphore is also specified at
creation time. There are no restrictions on the maximum and initial value.

Each object is exposed as an file, to which any number of fds may be opened.
When all fds are closed, the object is deleted.

Objects hold a pointer to the ntsync_device that created them. The device's
reference count is driven by struct file.

Signed-off-by: Elizabeth Figura <zfigura@codeweavers.com>
Link: https://lore.kernel.org/r/20240329000621.148791-3-zfigura@codeweavers.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-11 15:34:38 +02:00
..
accelerators
ebpf
gpio Documentation: gpio: clarify sysfs line values are logical 2024-02-14 10:28:48 +01:00
ioctl ntsync: Introduce NTSYNC_IOC_CREATE_SEM. 2024-04-11 15:34:38 +02:00
media media: docs: uAPI: dvb/decoder: completing the documentation 2024-02-07 06:05:45 +01:00
netlink doc/netlink: Describe nested structs in netlink raw docs 2024-01-31 21:19:19 -08:00
dcdbas.rst Documentation: move driver-api/dcdbas to userspace-api/ 2024-01-03 14:17:40 -07:00
dma-buf-alloc-exchange.rst doc: uapi: Add document describing dma-buf semantics 2023-08-21 18:20:05 +02:00
ELF.rst
futex2.rst
index.rst gpio updates for v6.9 2024-03-13 11:14:55 -07:00
iommu.rst
iommufd.rst
isapnp.rst Documentation: move driver-api/isapnp to userspace-api/ 2024-01-03 14:17:39 -07:00
landlock.rst landlock: Extend documentation for kernel support 2024-03-07 11:29:34 +01:00
lsm.rst LSM: Create lsm_list_modules system call 2023-11-12 22:54:42 -05:00
no_new_privs.rst
perf_ring_buffer.rst Documentation: userspace-api: Document perf ring buffer mechanism 2024-01-30 13:49:02 -07:00
seccomp_filter.rst
spec_ctrl.rst
sysfs-platform_profile.rst
tee.rst Documentation: Destage TEE subsystem documentation 2023-12-08 15:45:10 -07:00
unshare.rst
vduse.rst