fp_statea Kernel Service

Purpose

Provides information on an extended attribute.

Syntax

#include  <sys/types.h>
#include <sys/errno.h>
int fp_statea ( fp, name, buffer, segflag)
struct file * fp;
const char * name;
struct stat64x * buffer;
int segflag;

Parameters

Item Description
fp Specifies a file structure returned by the fp_open kernel service.
name Specifies the name of the extended attribute. An extended attribute name is a NULL terminated string.
buffer Specifies a pointer to the stat structure in which information is returned.
segflag

Specifies the flag indicating the location of the pointer stored by the path parameter is located:

SYS_ADSPACE
The pointers specified by the name and value parameters are stored in kernel memory.
USER_ADSPACE
The pointers specified by the name and value parameters are stored in application memory.

Description

The fp_statea kernel service provides a common service used by the following routines:

  • The file system for the implementation of the fstatea subroutine
  • Kernel routines outside the file system that set extended attribute values.

Execution Environment

The fp_statea kernel service can be called from the process environment only.

Return Values

Item Description
0 Indicates a successful operation.
ERRNO Indicates a failed operation. Returns an error number from the /usr/include/sys/errno.h file on failure.