Scroll to navigation

VDM_MEMSET(3) MINIASYNC Programmer's Manual VDM_MEMSET(3)

NAME

vdm_memset() - create a new memset virtual data mover operation structure

SYNOPSIS

#include <libminiasync.h>
enum vdm_operation_type {

VDM_OPERATION_MEMCPY,
VDM_OPERATION_MEMMOVE,
VDM_OPERATION_MEMSET, }; struct vdm_operation_output_memset {
void *str; }; FUTURE(vdm_operation_future,
struct vdm_operation_data, struct vdm_operation_output); struct vdm_operation_future vdm_memset(struct vdm *vdm, void *str, int c,
size_t n, uint64_t flags);

For general description of virtual data mover API, see miniasync_vdm(7).

DESCRIPTION

vdm_memset() initializes and returns a new memset future based on the virtual data mover implementation instance vdm. The parameters: str, c, n are standard memset parameters. The flags represents data mover specific flags. TODO: provide an example of the flags usage after implementing memset future for dml.

Memset future obtained using vdm_memset() will attempt to copy the character c to the first, n bytes of the memory area str when its polled.

RETURN VALUE

The vdm_memset() function returns an initialized struct vdm_operation_future memset future.

SEE ALSO

vdm_memcpy(3), vdm_memmove(3), miniasync(7), miniasync_vdm(7), miniasync_vdm_dml(7) and <https://pmem.io>

2022-06-04 MINIASYNC - miniasync version 0.1.0