End the _t nonsense

This commit is contained in:
2026-04-01 09:15:59 +02:00
parent e8a0a36889
commit e9b57f70b1
17 changed files with 59 additions and 59 deletions
+8 -8
View File
@@ -17,23 +17,23 @@ typedef enum {
DEAD
} status_t;
struct process_t {
struct process {
size_t pid;
char name[PROCESS_NAME_MAX];
status_t status;
struct cpu_status_t* context;
struct cpu_status* context;
void* root_page_table; // Process PML4 (should contain kernel PML4 in higher half [256-511]
struct process_t* next;
struct process* next;
};
void process_init(void);
struct process_t* process_create(char* name, void(*function)(void*), void* arg);
void process_add(struct process_t** processes_list, struct process_t* process);
void process_delete(struct process_t** processes_list, struct process_t* process);
struct process_t* process_get_next(struct process_t* process);
struct process* process_create(char* name, void(*function)(void*), void* arg);
void process_add(struct process** processes_list, struct process* process);
void process_delete(struct process** processes_list, struct process* process);
struct process* process_get_next(struct process* process);
void process_exit(void);
void process_display_list(struct process_t* processes_list);
void process_display_list(struct process* processes_list);
#endif
+1 -1
View File
@@ -7,7 +7,7 @@
#ifndef SCHEDULER_H
#define SCHEDULER_H
struct cpu_status_t* scheduler_schedule(struct cpu_status_t* context);
struct cpu_status* scheduler_schedule(struct cpu_status* context);
void scheduler_init(void);
#endif
+3 -3
View File
@@ -10,13 +10,13 @@
#include <stdbool.h>
#include <stdint.h>
struct spinlock_t
struct spinlock
{
bool locked;
uint64_t rflags;
};
void spinlock_acquire(struct spinlock_t* lock);
void spinlock_release(struct spinlock_t* lock);
void spinlock_acquire(struct spinlock* lock);
void spinlock_release(struct spinlock* lock);
#endif