A wrapping function: attach the shared memory to the specified address. */
| 302 | |
| 303 | /* A wrapping function: attach the shared memory to the specified address. */ |
| 304 | void *lwp_shmat(int id, void *shm_vaddr) |
| 305 | { |
| 306 | void *ret = RT_NULL; |
| 307 | |
| 308 | if (((size_t)shm_vaddr & ARCH_PAGE_MASK) != 0) |
| 309 | { |
| 310 | return RT_NULL; |
| 311 | } |
| 312 | |
| 313 | ret = _lwp_shmat(id, shm_vaddr); |
| 314 | |
| 315 | return ret; |
| 316 | } |
| 317 | |
| 318 | static struct lwp_shm_struct *_lwp_shm_struct_get(struct rt_lwp *lwp, void *shm_vaddr) |
| 319 | { |
no test coverage detected