gn_unmapcnt Subroutine

Purpose

Maintains the mapping count in a gnode structure.

Syntax

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

void gn_unmapcnt (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_unmapcnt subroutine uses the passed in flags value to determine the appropriate mapping count to decrease in the gnode structure. If the SHM_RDONLY flag is set, the gn_unmapcnt subroutine decreases the gn_mrdcnt field. Otherwise, the gn_unmapcnt subroutine decreases the gn_mwrcnt field.

Return Values

The gn_unmapcnt subroutine returns no return values.

Error Codes

The gn_unmapcnt subroutine returns no error codes.