Skip to content
Snippets Groups Projects
Select Git revision
  • e9d71e162ed6ae90ffa48ed5120f0b98fb5418b7
  • master default
2 results

alloc.h

Blame
  • Forked from HyukSang Kwon / 1801_OS_assignment4
    Source project has a limited visibility.
    alloc.h 411 B
    #ifndef _ALLOC_H_
    #define _ALLOC_H_
    
    #include <stdint.h>
    #include <sys/types.h>
    #include <stdlib.h>
    #include <stdio.h>
    #include <stdlib.h>
    
    #define ALLOC_FIRST_FIT 0
    #define ALLOC_BEST_FIT 1
    #define ALLOC_WORST_FIT 2
    
    
    typedef struct meta_struct {
    	struct meta_struct* next;
    	struct meta_struct* prev;
    
    	uint32_t free;
    	uint32_t size;
    
    } meta;
    
    meta* head;
    meta* tail;
    int fit;
    
    int num;
    char type[10];
    
    #endif