| 77 | } |
| 78 | |
| 79 | static int |
| 80 | shared_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 | |
| 92 | int |
| 93 | shared_page_alloc(int size, int align) |
no outgoing calls
no test coverage detected