svn commit: r365792 - stable/12/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Wed Sep 16 07:53:16 UTC 2020
Author: kib
Date: Wed Sep 16 07:53:15 2020
New Revision: 365792
URL: https://svnweb.freebsd.org/changeset/base/365792
Log:
MFC r365510:
uipc_shm.c: Move comment where it belongs.
Modified:
stable/12/sys/kern/uipc_shm.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/uipc_shm.c
==============================================================================
--- stable/12/sys/kern/uipc_shm.c Wed Sep 16 07:30:18 2020 (r365791)
+++ stable/12/sys/kern/uipc_shm.c Wed Sep 16 07:53:15 2020 (r365792)
@@ -623,11 +623,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)
{
@@ -641,6 +636,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