NetcanOS
Netcan OS is an operation system for x86 PCs, for learning how os works.
src
kernel
heap.h
浏览该文件的文档.
1
/*************************************************************************
2
> File Name: kernel/heap.h
3
> Author: Netcan
4
> Blog: http://www.netcan666.com
5
> Mail: 1469709759@qq.com
6
> Created Time: 2018-07-13 Fri 10:30:53 CST
7
************************************************************************/
8
9
10
#include <
io.h
>
11
#ifndef HEAP_H
12
#define HEAP_H
13
extern
u32
heap_placement_address
;
14
void
*
kmalloc
(
u32
sz,
s32
aligned,
u32
* phy_addr);
15
#endif
io.h
s32
signed int s32
Definition:
io.h:15
heap_placement_address
u32 heap_placement_address
堆地址,分配内存用
Definition:
heap.c:12
u32
unsigned int u32
Definition:
io.h:14
kmalloc
void * kmalloc(u32 sz, s32 aligned, u32 *phy_addr)
内核内存分配函数
Definition:
heap.c:20
制作者
1.8.14