[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel and Subsystems Technical Reference, Volume 1

fp_close Kernel Service for Data Link Control (DLC) Devices

Purpose

Allows kernel to close the generic data link control (GDLC) device manager using a file pointer.

Syntax

int fp_close( fp, ext)
struct file *fp;

Parameters

fp Specifies the file pointer of the GDLC being closed.
ext Specifies the extension parameter. This parameter is ignored by GDLC.

Description

The fp_close kernel service disables a GDLC channel. If this is the last channel to close on a port, the GDLC device manager resets to an idle state on that port and the communications device handler is closed.

Return Values

0 Indicates a successful completion.
ENXIO Indicates an invalid file pointer. This value is defined in the /usr/include/sys/errno.h file.

Implementation Specifics

Each GDLC supports the fp_close kernel service by way of its dlcclose entry point. The fp_close kernel service may be called from the process environment only.

Related Information

The fp_close kernel service.

The fp_open kernel service for data link control (DLC) devices.

Generic Data Link Control (GDLC) Environment Overview in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]