mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
feat: Massive OS expansion with IPC, Sound & TTS, Block layer, FAT32/ext2/sysfs, Signals, Syscalls, Modules, Drivers & 50+ LazyBox applets
This commit is contained in:
1 parent
5662be29f5
commit
d680335f05
64 files changed
+2370
-166
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#ifndef _KERNEL_WORKQUEUE_H
|
||||
#define _KERNEL_WORKQUEUE_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef void (*work_func_t)(void* data);
|
||||
|
||||
typedef struct work_struct {
|
||||
work_func_t func;
|
||||
void* data;
|
||||
bool pending;
|
||||
struct work_struct* next;
|
||||
} work_struct_t;
|
||||
|
||||
void workqueue_init(void);
|
||||
int schedule_work(work_struct_t* work);
|
||||
void workqueue_run_pending(void);
|
||||
|
||||
#endif // _KERNEL_WORKQUEUE_H
|
||||
Reference in new issue
Block a user