函数名称:allocate_resource - allocate empty slot in the resource tree given range & alignment
函数原型:int allocate_resource(struct resource *root, struct resource *new, resource_size_t size, resource_size_t min, resource_size_t max, resource_size_t align, resource_size_tresource_size_tresource_size_t (*alignf)(void *, const struct resource *, , ), void *alignf_data)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|
struct resource * | root | |
struct resource * | new | |
resource_size_t | size | |
resource_size_t | min | |
resource_size_t | max | |
resource_size_t | align | |
resource_size_t (* | alignf | |
void * | alignf_data | |