[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

getcx Kernel Service

Purpose

Returns the character at the end of a designated list.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include <cblock.h>
int getcx (header)
struct clist *header;

Parameter

header Specifies the address of the clist structure that describes the character list.

Description

Attention: The caller of the getcx service must ensure that the character list is pinned. This includes the clist header and all the cblock character buffers. Character buffers acquired from the getcf service are pinned.

The getcx kernel service is identical to the getc service, except that the getcx service returns the character at the end of the list instead of the character at the front of the list. The character at the end of the list is the last character in the first buffer, not in the last buffer.

Execution Environment

The getcx kernel service can be called from either the process or interrupt environment.

Return Values

The getcx service returns the character at the end of the list instead of the character at the front of the list.

Implementation Specifics

The getcx kernel service is part of Base Operating System (BOS) Runtime.

Related Information

The getcf kernel service.

I/O Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.


[ Previous | Next | Contents | Home | Search ]