From cc2f51ef325aecc29224b67c168ee5451017a669 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Wed, 1 Dec 2004 08:06:27 +0000 Subject: Style: move data to top of file. --- sys/kern/kern_descrip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 505b613481c5..305470eaac7d 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -144,6 +144,10 @@ int nfiles; /* actual number of open files */ struct sx filelist_lock; /* sx to protect filelist */ struct mtx sigio_lock; /* mtx to protect pointers to sigio */ +/* A mutex to protect the association between a proc and filedesc. */ +struct mtx fdesc_mtx; +MTX_SYSINIT(fdesc, &fdesc_mtx, "fdesc", MTX_DEF); + /* * Find the first zero bit in the given bitmap, starting at low and not * exceeding size - 1. @@ -1524,10 +1528,6 @@ fdcopy(fdp) return (newfdp); } -/* A mutex to protect the association between a proc and filedesc. */ -struct mtx fdesc_mtx; -MTX_SYSINIT(fdesc, &fdesc_mtx, "fdesc", MTX_DEF); - /* * Release a filedesc structure. */ -- cgit v1.2.3