MCPcopy Create free account
hub / github.com/F-Stack/f-stack / shared_page_alloc_locked

Function shared_page_alloc_locked

freebsd/kern/kern_sharedpage.c:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79static int
80shared_page_alloc_locked(int size, int align)
81{
82 int res;
83
84 res = roundup(shared_page_free, align);
85 if (res + size >= IDX_TO_OFF(shared_page_obj->size))
86 res = -1;
87 else
88 shared_page_free = res + size;
89 return (res);
90}
91
92int
93shared_page_alloc(int size, int align)

Callers 2

shared_page_allocFunction · 0.85
shared_page_fillFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected