Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2020 07:53:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r365792 - stable/12/sys/kern
Message-ID:  <202009160753.08G7rF3O022297@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009160753.08G7rF3O022297>