| 984 | } |
| 985 | |
| 986 | static void |
| 987 | shm_insert(char *path, Fnv32_t fnv, struct shmfd *shmfd) |
| 988 | { |
| 989 | struct shm_mapping *map; |
| 990 | |
| 991 | map = malloc(sizeof(struct shm_mapping), M_SHMFD, M_WAITOK); |
| 992 | map->sm_path = path; |
| 993 | map->sm_fnv = fnv; |
| 994 | map->sm_shmfd = shm_hold(shmfd); |
| 995 | shmfd->shm_path = path; |
| 996 | LIST_INSERT_HEAD(SHM_HASH(fnv), map, sm_link); |
| 997 | } |
| 998 | |
| 999 | static int |
| 1000 | shm_remove(char *path, Fnv32_t fnv, struct ucred *ucred) |
no test coverage detected