fp_listea Kernel Service

Purpose

Lists the extended attributes associated with a file.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
int fp_listea (fp, list, size, countp, segflag)
struct file * fp;           
const char * list;
size_t size;
ssize_t * countp;
int segflag;

Parameters

Item Description
fp Specifies the file structure returned by the fp_open kernel service.
list Specifies a pointer to a buffer in which the list of attributes will be stored.
size Specifies the size of the list buffer.
countp Specifies the actual size of the content in the list buffer.
segflag

Specifies the flags indicating where the pointer specified by the path parameter is located:

SYS_ADSPACE
The pointer specified by the list parameter is stored in kernel memory.
USER_ADSPACE
The pointer specified by the list parameter is stored in application memory.

Description

The fp_listea kernel service provides a common service used by:
  • File system for the implementation of the flistea subroutine.
  • Kernel routines outside the file system that set extend attribute values.

Execution Environment

The fp_listea 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.