Function report |
Source Code:kernel\resource.c |
Create Date:2022-07-28 09:05:12 |
Last Modify:2022-05-22 11:14:39 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Find empty slot in the resource tree with the given range and* alignment constraints
Proto:static int __find_resource(struct resource *root, struct resource *old, struct resource *new, resource_size_t size, struct resource_constraint *constraint)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct resource * | root | |
struct resource * | old | |
struct resource * | new | |
resource_size_t | size | |
struct resource_constraint * | constraint |
609 | cycle |
618 | resource_clip( & tmp, min, max) |
619 | arch_remove_reservations( & tmp) |
622 | start = @a is a power of 2 value (start, align) |
624 | flags = flags & ~No address assigned yet |
630 | If start <= end && True iff r1 completely contains r2 Then |
638 | next : |
645 | Return -EBUSY |
Name | Describe |
---|---|
find_resource | Find empty slot in the resource tree given range and alignment. |
reallocate_resource | allocate_resource - allocate a slot in the resource tree given range & alignment |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |