gn_mapcnt Subroutine

Purpose

Maintains the mapping count in a gnode structure.

Syntax

#include <sys/vnode.h>
#include <sys/shm.h>

void gn_mapcnt (gnode, flags)
struct gnode * gnode;
long flags;

Parameters

Item Description
gnode Points to a gnode structure.
flags Specifies the following mapping flag:
SHM_RDONLY
Only read access is required.

Description

The gn_mapcnt subroutine uses the passed in flags value to determine the appropriate mapping count to increase in the gnode structure. If the SHM_RDONLY flag is set, the gn_mapcnt subroutine increases the gn_mrdcnt field. Otherwise, the gn_mapcnt subroutine increases the gn_mwrcnt field.

Return Values

The gn_mapcnt subroutine returns no return values.

Error Codes

The gn_mapcnt subroutine returns no error codes.