From owner-cvs-all Tue Nov 13 22:30:43 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6421537B418; Tue, 13 Nov 2001 22:30:36 -0800 (PST) Received: (from dillon@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAE6UaS32367; Tue, 13 Nov 2001 22:30:36 -0800 (PST) (envelope-from dillon) Message-Id: <200111140630.fAE6UaS32367@freefall.freebsd.org> From: Matt Dillon Date: Tue, 13 Nov 2001 22:30:36 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_descrip.c kern_event.c sys_generic.c uipc_syscalls.c src/sys/sys file.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dillon 2001/11/13 22:30:36 PST Modified files: sys/kern kern_descrip.c kern_event.c sys_generic.c uipc_syscalls.c sys/sys file.h Log: remove holdfp() Replace uses of holdfp() with fget*() or fgetvp*() calls as appropriate introduce fget(), fget_read(), fget_write() - these functions will take a thread and file descriptor and return a file pointer with its ref count bumped. introduce fgetvp(), fgetvp_read(), fgetvp_write() - these functions will take a thread and file descriptor and return a vref()'d vnode. *_read() requires that the file pointer be FREAD, *_write that it be FWRITE. This continues the cleanup of struct filedesc and struct file access routines which, when are all through with it, will allow us to then make the API calls MP safe and be able to move Giant down into the fo_* functions. Revision Changes Path 1.111 +128 -38 src/sys/kern/kern_descrip.c 1.33 +5 -9 src/sys/kern/kern_event.c 1.83 +33 -57 src/sys/kern/sys_generic.c 1.98 +6 -18 src/sys/kern/uipc_syscalls.c 1.32 +9 -1 src/sys/sys/file.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message