MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / initialize

Method initialize

lab8/src/3/src/utils/address_pool.cpp:9–13  ·  view source on GitHub ↗

设置地址池BitMap

Source from the content-addressed store, hash-verified

7
8// 设置地址池BitMap
9void AddressPool::initialize(char *bitmap, const int length, const int startAddress)
10{
11 resources.initialize(bitmap, length);
12 this->startAddress = startAddress;
13}
14
15// 从地址池中分配count个连续页
16int AddressPool::allocate(const int count)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected