memobj_attr_set_cache_mode()

Set the CPU caching mode

Synopsis:

#include <memobj/alloc.h>
errno_t memobj_attr_set_cache_mode(struct memobj_attr *attr, enum memobj_cache_mode cache_mode)

Arguments:

attr
The attribute structure to modify.
cache_mode
The enum value for cache mode.

Library:

libmemobj

Description:

The memobj_attr_set_cache_mode() function sets the CPU caching mode with which the object will be created.

Returns:

EOK
The CPU cache mode was accepted.
EINVAL
An invalid CPU cache mode was passed.
Page updated: