Files
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

20 lines
711 B
C

#ifndef LINUXU_RT_TASK_H
#define LINUXU_RT_TASK_H
#include <linux/sched.h>
void linuxu_task_init(struct task_struct *task, const char *name,
unsigned int flags);
int linuxu_task_swap_current(struct task_struct *task,
struct task_struct **previous);
void linuxu_task_wake(struct task_struct *task);
/* The calling thread's task if one exists, without creating the default
* per-thread task (NULL then): for paths that only need to observe its
* mm, files or signals. */
struct task_struct *linuxu_current_task_peek(void);
void linuxu_task_cleanup_current(void);
bool linuxu_task_fatal_signal_pending(struct task_struct *task);
void linuxu_task_clear_signals(struct task_struct *task);
#endif