mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-26 09:02:46 +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,23 @@
|
||||
#ifndef _BLOCK_ELEVATOR_H
|
||||
#define _BLOCK_ELEVATOR_H
|
||||
|
||||
#include <block/block.h>
|
||||
|
||||
typedef enum {
|
||||
ELEVATOR_NOOP = 0,
|
||||
ELEVATOR_DEADLINE,
|
||||
ELEVATOR_CFQ
|
||||
} elevator_type_t;
|
||||
|
||||
typedef struct elevator {
|
||||
elevator_type_t type;
|
||||
const char* name;
|
||||
void (*queue_request)(block_device_t* dev, block_request_t* req);
|
||||
block_request_t* (*dispatch_request)(block_device_t* dev);
|
||||
} elevator_t;
|
||||
|
||||
void elevator_init(void);
|
||||
elevator_t* elevator_get_active(void);
|
||||
void elevator_set_scheduler(elevator_type_t type);
|
||||
|
||||
#endif // _BLOCK_ELEVATOR_H
|
||||
Reference in new issue
Block a user