#include <isc/lang.h>
#include <isc/types.h>
Go to the source code of this file.
Defines | |
#define | ISC_RESOURCE_H 1 |
#define | ISC_RESOURCE_UNLIMITED ((isc_resourcevalue_t)ISC_UINT64_MAX) |
Functions | |
ISC_LANG_BEGINDECLS isc_result_t | isc_resource_setlimit (isc_resource_t resource, isc_resourcevalue_t value) |
Set the maximum limit for a system resource. | |
isc_result_t | isc_resource_getlimit (isc_resource_t resource, isc_resourcevalue_t *value) |
Get the maximum limit for a system resource. | |
isc_result_t | isc_resource_getcurlimit (isc_resource_t resource, isc_resourcevalue_t *value) |
Same as isc_resource_getlimit(), but returns the current (soft) limit. |
Definition in file resource.h.
#define ISC_RESOURCE_H 1 |
Definition at line 21 of file resource.h.
#define ISC_RESOURCE_UNLIMITED ((isc_resourcevalue_t)ISC_UINT64_MAX) |
Definition at line 28 of file resource.h.
Referenced by isc_resource_setlimit(), ns_os_adjustnofile(), and set_limit().
ISC_LANG_BEGINDECLS isc_result_t isc_resource_setlimit | ( | isc_resource_t | resource, | |
isc_resourcevalue_t | value | |||
) |
Set the maximum limit for a system resource.
Notes:
Definition at line 105 of file resource.c.
References isc__errno2result, ISC_PLATFORM_RLIMITTYPE, ISC_R_SUCCESS, isc_resource_openfiles, ISC_RESOURCE_UNLIMITED, ISC_TF, and resource2rlim().
Referenced by ns_os_adjustnofile(), and set_limit().
isc_result_t isc_resource_getlimit | ( | isc_resource_t | resource, | |
isc_resourcevalue_t * | value | |||
) |
Get the maximum limit for a system resource.
Notes:
Definition at line 200 of file resource.c.
References INSIST, ISC_R_SUCCESS, and resource2rlim().
Referenced by setup().
isc_result_t isc_resource_getcurlimit | ( | isc_resource_t | resource, | |
isc_resourcevalue_t * | value | |||
) |
Same as isc_resource_getlimit(), but returns the current (soft) limit.
Returns:
Definition at line 217 of file resource.c.
References INSIST, ISC_R_SUCCESS, and resource2rlim().
Referenced by isc__socketmgr_waitevents(), load_configuration(), and setup_watcher().