Back to Darwin Xnu

DP Backing Store Create

osfmk/man/DP_backing_store_create.html

latest1.4 KB
Original Source

default_pager_backing_store_create


Server Interface - Create a backing storage object.

SYNOPSIS

**#include&lt mach/default\_pager\_object.h&gt**** kern\_return\_t default\_pager\_backing\_store\_create****(mach\_port\_t**pager, **int** priority, **int** clsize, **mach\_port\_t** backing\_store**);**

PARAMETERS

pager[in default pager (receive) right] The default pager service port.

priority[in scalar] The scheduling priority for the backing store service thread(s).

clsize[in scalar] The preferred cluster size (in bytes) for the backing store object.

backing_store[out backing store (receive) right] The port used to manipulate the created backing store.

DESCRIPTION

The default_pager_backing_store_create function is called to create a new backing storage object. The kernel does not make this call itself (which is why it can be a synchronous call); this request is only issued by tasks (privileged) holding the default pager service port.

RETURN VALUES

KERN_FAILURE The default pager does not support this operation.

KERN_INVALID_ARGUMENT The pager port does not represent a valid default pager.

KERN_SUCCESS The operation was successful.

Functions: default_pager_backing_store_delete, default_pager_backing_store_info.