File: 7dd9f0d248b5c12ac0798c7c4ddf8579cb36d2fa

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 (91 lines) | stat: -rw-r--r-- 1,687 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.\" Automatically generated by Pandoc 2.9.2.1
.\"
.TH "manadv_init_obj" "3" "" "" ""
.hy
.SH NAME
.PP
manadv_init_obj - Initialize mana direct verbs object from ibv_xxx
structures
.SH SYNOPSIS\[dq]
.IP
.nf
\f[C]
#include <infiniband/manadv.h>

int manadv_init_obj(struct manadv_obj *obj, uint64_t obj_type);
\f[R]
.fi
.SH DESCRIPTION
.PP
manadv_init_obj() This function will initialize manadv_xxx structs based
on supplied type.
The information for initialization is taken from ibv_xx structs supplied
as part of input.
.SH ARGUMENTS
.TP
\f[I]obj\f[R]
The manadv_xxx structs be to returned.
.IP
.nf
\f[C]
struct manadv_qp {
    void        *sq_buf;
    uint32_t    sq_count;
    uint32_t    sq_size;
    uint32_t    sq_id;
    uint32_t    tx_vp_offset;
    void        *db_page;
};

struct manadv_cq {
    void        *buf;
    uint32_t    count;
    uint32_t    cq_id;
};

struct manadv_rwq {
    void        *buf;
    uint32_t    count;
    uint32_t    size;
    uint32_t    wq_id;
    void        *db_page;
};

struct manadv_obj {
    struct {
        struct ibv_qp       *in;
        struct manadv_qp    *out;
    } qp;

    struct {
        struct ibv_cq       *in;
        struct manadv_cq    *out;
    } cq;

    struct {
        struct ibv_wq       *in;
        struct manadv_rwq   *out;
    } rwq;
};
\f[R]
.fi
.TP
\f[I]obj_type\f[R]
The types of the manadv_xxx structs to be returned.
.IP
.nf
\f[C]
enum manadv_obj_type {
    MANADV_OBJ_QP   = 1 << 0,
    MANADV_OBJ_CQ   = 1 << 1,
    MANADV_OBJ_RWQ  = 1 << 2,
};
\f[R]
.fi
.SH RETURN VALUE
.PP
0 on success or the value of errno on failure (which indicates the
failure reason).
.SH AUTHORS
.PP
Long Li <longli@microsoft.com>