libexplain
1.4.D001
|
#include <libexplain/string_buffer.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_enomem_kernel (explain_string_buffer_t *sb) |
void | explain_buffer_enomem_user (explain_string_buffer_t *sb, size_t size) |
void | explain_buffer_enomem_kernel_or_user (explain_string_buffer_t *sb) |
int | explain_buffer_enomem_rlimit_exceeded (explain_string_buffer_t *sb, size_t size) |
int | explain_buffer_enomem_exhausting_swap (explain_string_buffer_t *sb) |
The explain_buffer_enomem_exhausting_swap function is used to print additional information when "infinite" memory is availabl, but the kernel says we have run out.
sb | String buffer to print into. |
Definition at line 31 of file exhausting_swap.c.
void explain_buffer_enomem_kernel | ( | explain_string_buffer_t * | sb | ) |
The explain_buffer_enomem_or_user function may be used to explain a 'no user or kernel memory' error.
sb | The buffer to print the explanation to |
Definition at line 24 of file kernel_or_user.c.
int explain_buffer_enomem_rlimit_exceeded | ( | explain_string_buffer_t * | sb, |
size_t | size | ||
) |
The explain_buffer_enomem_rlimit_exceeded function is used to test whether or not the given data size would exceed the process's virtual memory limit.
If it would be exceeded, a message to that effect is printed, and true (non-zero) is returned. Otherwise nothing is printed, and false (zero) is returned.
sb | String buffer to print into. |
size | The memory allocation size, in bytes. Or zero is unknown. |
Definition at line 35 of file rlimit_exceeded.c.
void explain_buffer_enomem_user | ( | explain_string_buffer_t * | sb, |
size_t | size | ||
) |