Lines Matching defs:fnv
120 #define SHM_HASH(fnv) (&shm_dictionary[(fnv) & shm_hash])
123 static void shm_insert(char *path, Fnv32_t fnv, struct shmfd *shmfd);
124 static struct shmfd *shm_lookup(char *path, Fnv32_t fnv);
125 static int shm_remove(char *path, Fnv32_t fnv, struct ucred *ucred);
1102 shm_lookup(char *path, Fnv32_t fnv)
1106 LIST_FOREACH(map, SHM_HASH(fnv), sm_link) {
1107 if (map->sm_fnv != fnv)
1117 shm_insert(char *path, Fnv32_t fnv, struct shmfd *shmfd)
1123 map->sm_fnv = fnv;
1126 LIST_INSERT_HEAD(SHM_HASH(fnv), map, sm_link);
1130 shm_remove(char *path, Fnv32_t fnv, struct ucred *ucred)
1135 LIST_FOREACH(map, SHM_HASH(fnv), sm_link) {
1136 if (map->sm_fnv != fnv)
1175 Fnv32_t fnv;
1263 fnv = fnv_32_str(path, FNV1_32_INIT);
1265 shmfd = shm_lookup(path, fnv);
1282 shm_insert(path, fnv, shmfd);
1402 Fnv32_t fnv;
1410 fnv = fnv_32_str(path, FNV1_32_INIT);
1412 error = shm_remove(path, fnv, td->td_ucred);