| 101 | } |
| 102 | |
| 103 | int |
| 104 | shared_page_fill(int size, int align, const void *data) |
| 105 | { |
| 106 | int res; |
| 107 | |
| 108 | sx_xlock(&shared_page_alloc_sx); |
| 109 | res = shared_page_alloc_locked(size, align); |
| 110 | if (res != -1) |
| 111 | shared_page_write(res, size, data); |
| 112 | sx_xunlock(&shared_page_alloc_sx); |
| 113 | return (res); |
| 114 | } |
| 115 | |
| 116 | static void |
| 117 | shared_page_init(void *dummy __unused) |
no test coverage detected