Chapter Contents |
Previous |
Next |
pfsctl |
Portability: | SAS/C extension |
SYNOPSIS | |
DESCRIPTION | |
RETURN VALUE | |
PORTABILITY | |
USAGE NOTES | |
RELATED FUNCTIONS |
SYNOPSIS |
#include <sys/pfsctl.h> int pfsctl(const char * pfs_type, int pfs_cmd, int argLength, void *argBuffer);
DESCRIPTION |
pfsctl
accepts the following
arguments:
pfs_type
pfs_type
name must match a name that was
specified on the TYPE operand of the FILESYSTYPE statement, or the NAME operand
of a SUBFILESYSTYPE statement in the BPXPRMxx parmlib member that defined
the PFS to OS/390 UNIX System Services. Alternately, the pfs_type
may be set to NO_TCPSTACK_AFFINITY
,
which will disable affinity for a specific transport.
The following PFS types are pre-defined in pfsctl.h
:
#define NO_TCPSTACK_AFFINITY _PFS_NONE /* Physical File Types #define _PFS_NONE " " #define _PFS_KERNEL "KERNEL " #define _PFS_INET "INET " #define _PFS_CINET "CINET "
pfs_cmd
0x40000000
are considered to be authorized.
The following PFS commands are pre-defined
in pfsctl.h
:
#define PC_SETIBMOPTCMD 0xC0000005 /* Set TCP/IP Stack Affinity */ #define PC_ADDFILE 0x80000007 /* add file to LFS File Cache */ #define PC_DELETEFILE 0x80000008 /* del file in LFS File Cache */ #define PC_REFRESHCACHE 0x80000009 /* refresh LFS File Cache */ #define PC_PURGECACHE 0x8000000A /* purge LFS File Cache */
argLength
argBuffer
argument. There is no restriction on the length
of the argument buffer.
argBuffer
RETURN VALUE |
If unsuccessful, -1 is returned and errno
is set to indicate the type of
error.
PORTABILITY |
pfsctl
is implemented only under OS/390 UNIX System Services.
USAGE NOTES |
PC_SETIBMOPTCMD
pfs_type
must match one of the TCP/IP stack names specified in the
NAME operand of a SUBFILESYSTYPE statement in the BPXPRMxx parmlib member
with a TYPE operand of CINET.
The command may be reissued to change affinity for any future integrated sockets that are created.
PC_ADDFILE
pfs_type
to KERNEL. argBuffer
must contain the full pathname of the HFS file that
is to be added to the LFS Cache. argLength
must specify the length of the pathname. The intended usage of this command
is for read-only files that are loaded into the cache at startup
time.
PC_DELETEFILE
pfs_type
to
KERNEL. argBuffer
must contain the full pathname
of the HFS file that is to be deleted in the LFS Cache. argLength
must contain the length of the
pathname.
PC_PURGECACHE
pfs_type
to KERNEL. The argBuffer
parameter is not used, and argLength
should be
0.
PC_REFRESHCACHE
pfs_type
to KERNEL. The argBuffer
parameter is not used,
and argLength
should be 0. Refreshing the cache
will eliminate any fragmentation in the cache dataspace.
RELATED FUNCTIONS |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.