A wrapping function, get the shared memory with interrupts disabled. */
| 191 | |
| 192 | /* A wrapping function, get the shared memory with interrupts disabled. */ |
| 193 | int lwp_shmget(size_t key, size_t size, int create) |
| 194 | { |
| 195 | int ret = 0; |
| 196 | |
| 197 | rt_mm_lock(); |
| 198 | ret = _lwp_shmget(key, size, create); |
| 199 | rt_mm_unlock(); |
| 200 | return ret; |
| 201 | } |
| 202 | |
| 203 | /* Locate the binary tree node_key corresponding to the shared-memory id. */ |
| 204 | static struct lwp_avl_struct *shm_id_to_node(int id) |
no test coverage detected