svn commit: r365510 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Wed Sep 9 21:00:11 UTC 2020
Author: kib
Date: Wed Sep 9 21:00:11 2020
New Revision: 365510
URL: https://svnweb.freebsd.org/changeset/base/365510
Log:
uipc_shm.c: Move comment where it belongs.
Reviewed by: markj
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D24652
Modified:
head/sys/kern/uipc_shm.c
Modified: head/sys/kern/uipc_shm.c
==============================================================================
--- head/sys/kern/uipc_shm.c Wed Sep 9 20:48:57 2020 (r365509)
+++ head/sys/kern/uipc_shm.c Wed Sep 9 21:00:11 2020 (r365510)
@@ -684,11 +684,6 @@ shm_access(struct shmfd *shmfd, struct ucred *ucred, i
return (error);
}
-/*
- * Dictionary management. We maintain an in-kernel dictionary to map
- * paths to shmfd objects. We use the FNV hash on the path to store
- * the mappings in a hash table.
- */
static void
shm_init(void *arg)
{
@@ -702,6 +697,11 @@ shm_init(void *arg)
}
SYSINIT(shm_init, SI_SUB_SYSV_SHM, SI_ORDER_ANY, shm_init, NULL);
+/*
+ * Dictionary management. We maintain an in-kernel dictionary to map
+ * paths to shmfd objects. We use the FNV hash on the path to store
+ * the mappings in a hash table.
+ */
static struct shmfd *
shm_lookup(char *path, Fnv32_t fnv)
{
More information about the svn-src-all
mailing list