Purpose
Maintains
the using count on a gnode structure.
Syntax
#include <sys/vnode.h>
#include <sys/fcntl.h>
void gn_opencnt (gnode, flags)
struct gnode * gnode;
long flags;
Parameters
Item |
Description |
gnode |
Points to a gnode structure. |
flags |
Specifies the open mode (FREAD, FWRITE, FEXEC, FRSHARE)
from the open file flags. |
Description
The
gn_opencnt subroutine
uses the passed in
flags value to determine the appropriate
using counts to increase in the
gnode structure. The following
table shows the mapping of the
flags value to the counts field
in the
gnode structure:
Item |
Description |
FREAD |
gn_rdcnt |
FWRITE |
gn_wrcnt |
FEXEC |
gn_excnt |
FRSHARE |
gn_rshcnt |
Return Values
The gn_opencnt subroutine
returns no return values.
Error Codes
The gn_opencnt subroutine
returns no error codes.