Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Nov 2001 22:30:36 -0800 (PST)
From:      Matt Dillon <dillon@FreeBSD.org>
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
Message-ID:  <200111140630.fAE6UaS32367@freefall.freebsd.org>

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




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