.\" Automatically generated by Pandoc 2.17.1.1 .\" .TH "DATA_MOVER_DML_NEW" "3" "2022-09-04" "MINIASYNC - miniasync version 0.2.1" "MINIASYNC Programmer's Manual" .hy .\" SPDX-License-Identifier: BSD-3-Clause .\" Copyright 2020-2022, Intel Corporation .SH NAME .PP \f[B]data_mover_dml_new\f[R](), \f[B]data_mover_dml_delete\f[R]() - allocate or free \f[B]DML\f[R] data mover structure .SH SYNOPSIS .IP .nf \f[C] #include struct data_mover_dml; enum data_mover_dml_type { DATA_MOVER_DML_SOFTWARE, DATA_MOVER_DML_HARDWARE, DATA_MOVER_DML_AUTO, }; struct data_mover_dml *data_mover_dml_new(enum data_mover_dml_type type); void data_mover_dml_delete(struct data_mover_dml *dmd); \f[R] .fi .PP For general description of \f[B]DML\f[R] data mover API, see \f[B]miniasync_vdm_dml\f[R](7). .SH DESCRIPTION .PP The \f[B]data_mover_dml_new\f[R]() function allocates and initializes a new \f[B]DML\f[R] data mover structure. The \f[B]type\f[R] argument maps directly onto the \f[B]DML\f[R] path types. See the \f[B]DML\f[R] documentation for more details. .PP The \f[B]data_mover_dml_delete\f[R]() function frees and finalizes the \f[B]DML\f[R] data mover structure pointed by \f[I]dmd\f[R]. .SH RETURN VALUE .PP The \f[B]data_mover_dml_new\f[R]() function returns a pointer to \f[I]struct data_mover_dml\f[R] structure or \f[B]NULL\f[R] if the allocation or initialization failed. .PP The \f[B]data_mover_dml_delete\f[R]() function does not return any value. .SH SEE ALSO .PP \f[B]miniasync\f[R](7), \f[B]miniasync_vdm_dml\f[R](7), \f[B]\f[R] and \f[B]\f[R]