Files
mac_linuxgpu/linuxu/headers/linux/capability.h
T
geramyloveless 953cf0149c mac_linuxgpu: upstream Linux amdgpu on macOS
Runs the unmodified upstream Linux amdgpu and amdkfd drivers on Apple
Silicon Macs inside a DriverKit system extension, for AMD GPUs attached
over Thunderbolt. The Linux sources come from a pinned submodule and are
compiled against linuxu, a userspace implementation of the Linux kernel
APIs they use. Includes the HSA runtime, the host installer app, the
setup and firmware fetch scripts, and the offline test suite.
2026-10-02 18:49:17 -07:00

33 lines
551 B
C

/* linuxu: SHIM (third_party/linux/include/linux/capability.h) — single-process
* userspace; all capability checks succeed. */
#ifndef _LINUX_CAPABILITY_H
#define _LINUX_CAPABILITY_H
#include <linux/types.h>
enum {
CAP_SYS_NICE = 23,
CAP_CHOWN = 0,
CAP_DAC_OVERRIDE = 1,
CAP_FOWNER = 3,
CAP_KILL = 5,
CAP_SETGID = 6,
CAP_SETUID = 7,
CAP_SYS_ADMIN = 21,
CAP_SYS_PTRACE = 19,
CAP_CHECKPOINT_RESTORE = 40,
};
struct kernel_cap_struct {
unsigned long cap[2];
};
static inline bool capable(int cap)
{
(void)cap;
return true;
}
#endif