This verb specifies a limit on the amount of kernel memory
that SNAplus2 can use at any one time. This allows you to ensure
that memory is available for other processes on the HP-UX computer.
You can also specify the kernel memory limit when starting
the SNAplus2 software (for more information, see the HP-UX
SNAplus2 Administration Guide). This verb overrides
the limit, if any, specified when starting the SNAplus2 software.
VCB
Structure |
 |
typedef struct set_kernel_memory_limit { AP_UINT16 opcode; /* verb operation code */ unsigned char reserv2; /* reserved */ unsigned char format; /* reserved */ AP_UINT16 primary_rc; /* primary return code */ AP_UINT32 secondary_rc; /* secondary return code */ AP_UINT32 limit; /* kernel memory limit, 0 => no limit */ } SET_KERNEL_MEMORY_LIMIT;
|
Supplied
Parameters |
 |
The application supplies the following parameters:
- opcode
AP_SET_KERNEL_MEMORY_LIMIT
- limit
The maximum amount of kernel memory that SNAplus2
should use at any time, in bytes. If a SNAplus2 component attempts
to allocate kernel memory that would take the total amount of memory currently
allocated to SNAplus2 components above this limit, the allocation
attempt will fail.
To remove the limit set by a previous SET_KERNEL_MEMORY_LIMIT
verb, specify zero.
Returned
Parameters: Successful Execution |
 |
If the verb executes successfully, SNAplus2 returns the following parameters:
- primary_rc
AP_OK
- secondary_rc
Not used.
Returned
Parameters: Other Conditions |
 |
Appendix A “Common
Return Codes” lists further
combinations of primary and secondary return codes that are common
to all NOF verbs.