add a contiguous segment of memory to the system memory map
#include <sys/seginfo.h> unsigned qnx_segment_raw_free( struct _seginfo *buf );
The qnx_segment_raw_free() function adds a contiguous segment of memory to the system memory map. The physical address and the size of the memory are provided in the buf parameter. The size must be a multiple of the page size (4K for 32-bit QNX).
This function is typically used to return memory acquired by the qnx_segment_raw_alloc() function, however it may be used to add memory that exists in your computer but wasn't reported by the BIOS. There are no checks made on the validity of the added memory.
QNX
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | Yes, but modifies errno |
Thread | Yes |
errno, qnx_segment_raw_alloc()