File: dde42016fc7808c9fd87d819ed0f34905949155b

package info (click to toggle)
rdma-core 56.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,196 kB
  • sloc: ansic: 171,361; python: 13,724; sh: 2,774; perl: 1,465; makefile: 73
file content (76 lines) | stat: -rw-r--r-- 1,571 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "mlx5dv_get_vfio_device_list" "3" "" "" ""
.hy
.SH NAME
.PP
mlx5dv_get_vfio_device_list - Get list of available devices to be used
over VFIO
.SH SYNOPSIS
.IP
.nf
\f[C]
#include <infiniband/mlx5dv.h>

struct ibv_device **
mlx5dv_get_vfio_device_list(struct mlx5dv_vfio_context_attr *attr);
\f[R]
.fi
.SH DESCRIPTION
.PP
Returns a NULL-terminated array of devices based on input
\f[I]attr\f[R].
.SH ARGUMENTS
.TP
\f[I]attr\f[R]
Describe the VFIO devices to return in list.
.SS \f[I]attr\f[R] argument
.IP
.nf
\f[C]
struct mlx5dv_vfio_context_attr {
    const char *pci_name;
    uint32_t flags;
    uint64_t comp_mask;
};
\f[R]
.fi
.TP
\f[I]pci_name\f[R]
The PCI name of the required device.
.TP
\f[I]flags\f[R]
.IP
.nf
\f[C]
A bitwise OR of the various values described below.

*MLX5DV_VFIO_CTX_FLAGS_INIT_LINK_DOWN*:
Upon device initialization link should stay down.
\f[R]
.fi
.TP
\f[I]comp_mask\f[R]
.IP
.nf
\f[C]
Bitmask specifying what fields in the structure are valid.
\f[R]
.fi
.SH RETURN VALUE
.PP
Returns the array of the matching devices, or sets errno and returns
NULL if the request fails.
.SH NOTES
.PP
Client code should open all the devices it intends to use with
ibv_open_device() before calling ibv_free_device_list().
Once it frees the array with ibv_free_device_list(), it will be able to
use only the open devices; pointers to unopened devices will no longer
be valid.
.SH SEE ALSO
.PP
\f[I]ibv_open_device(3)\f[R] \f[I]ibv_free_device_list(3)\f[R]
.SH AUTHOR
.PP
Yishai Hadas <yishaih@nvidia.com>