.\" Automatically generated by Pandoc 2.0.6
.\"
.TH "mlx5dv_get_export_sizes" "3" "" "" ""
.hy
.SH NAME
.PP
mlx5dv_get_export_sizes \- Query export buffer sizes for mlx5 objects
.SH SYNOPSIS
.IP
.nf
\f[C]
#include\ <infiniband/mlx5dv.h>

struct\ mlx5dv_export_sizes\ {
\ \ \ \ uint32_t\ var_attrs_size;
\ \ \ \ uint32_t\ devx_umem_attrs_size;
\ \ \ \ uint32_t\ devx_obj_attrs_size;
};

void\ mlx5dv_get_export_sizes(struct\ mlx5dv_export_sizes\ *sizes);
\f[]
.fi
.SH DESCRIPTION
.PP
\f[I]mlx5dv_get_export_sizes()\f[] returns the buffer sizes required by
the export/import APIs for each supported object type.
The caller should use these sizes to allocate data buffers before
calling the corresponding export/import functions.
.PP
The returned sizes reflect the library's internal data layout and may
change between library versions.
.SH ARGUMENTS
.TP
.B \f[I]sizes\f[]
Pointer to a \f[I]struct mlx5dv_export_sizes\f[] to be filled.
.RS
.RE
.SS mlx5dv_export_sizes
.TP
.B \f[I]var_attrs_size\f[]
Buffer size required for \f[I]mlx5dv_var_export()\f[] /
\f[I]mlx5dv_var_import()\f[].
.RS
.RE
.TP
.B \f[I]devx_umem_attrs_size\f[]
Buffer size required for \f[I]mlx5dv_devx_umem_export()\f[] /
\f[I]mlx5dv_devx_umem_import()\f[].
.RS
.RE
.TP
.B \f[I]devx_obj_attrs_size\f[]
Buffer size required for \f[I]mlx5dv_devx_obj_export()\f[] /
\f[I]mlx5dv_devx_obj_import()\f[].
.RS
.RE
.SH SEE ALSO
.PP
\f[B]mlx5dv_var_export\f[], \f[B]mlx5dv_devx_umem_export\f[],
\f[B]mlx5dv_devx_obj_export\f[]
.SH AUTHOR
.PP
Maher Sanalla <msanalla@nvidia.com>
