[Previous]
[Contents]
[Next]

qnx_segment_raw_free()

add a contiguous segment of memory to the system memory map

Synopsis:

#include <sys/seginfo.h>
unsigned qnx_segment_raw_free(
             struct _seginfo *buf );

Description:

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.

Returns:

0
Success
-1
An error occurred. errno is set to indicate the error.

Errors:

EPERM
The process doesn't have sufficient privilege.

Examples:

See qnx_segment_raw_alloc().

Classification:

QNX

Safety:
Interrupt handler No
Signal handler Yes, but modifies errno
Thread Yes

See also:

errno, qnx_segment_raw_alloc()


[Previous]
[Contents]
[Next]