MCPcopy Create free account
hub / github.com/F-Stack/f-stack / shm_insert

Function shm_insert

freebsd/kern/uipc_shm.c:986–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

984}
985
986static void
987shm_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
999static int
1000shm_remove(char *path, Fnv32_t fnv, struct ucred *ucred)

Callers 2

kern_shm_open2Function · 0.85
sys_shm_renameFunction · 0.85

Calls 2

mallocFunction · 0.85
shm_holdFunction · 0.85

Tested by

no test coverage detected