ibv_create_counters - Online Linux Manual PageSection : 3
Updated : 2018-04-02
Source : libibverbs
Note : Libibverbs Programmer’s Manual
NAMEibv_create_counters, ibv_destroy_counters - Create or destroy a counters handle
SYNOPSIS
#include <infiniband/verbs.h>
struct ibv_counters *
ibv_create_counters(struct ibv_context *context,
struct ibv_counters_init_attr *init_attr);
int ibv_destroy_counters(struct ibv_counters *counters);
DESCRIPTIONibv_create_counters() creates a new counters handle for the RDMA device context. An ibv_counters handle can be attached to a verbs resource (e.g.: QP, WQ, Flow) statically when these are created. For example attach an ibv_counters statically to a Flow (struct ibv_flow) during creation of a new Flow by calling ibv_create_flow(). Counters are cleared upon creation and values will be monotonically increasing. ibv_destroy_counters() releases the counters handle, user should detach the counters object before destroying it.
ARGUMENTScontext RDMA device context to create the counters on. init_attr Is an ibv_counters_init_attr struct, as defined in verbs.h.
init_attr Argument
struct ibv_counters_init_attr {
int comp_mask;
};
comp_mask Bitmask specifying what fields in the structure are valid.
RETURN VALUEibv_create_counters() returns a pointer to the allocated ibv_counters object, or NULL if the request fails (and sets errno to indicate the failure reason) ibv_destroy_counters() returns 0 on success, or the value of errno on failure (which indicates the failure reason)
ERRORSEOPNOTSUPP ibv_create_counters() is not currently supported on this device (ENOSYS may sometimes be returned by old versions of libibverbs). ENOMEM ibv_create_counters() could not create ibv_counters object, not enough memory EINVAL invalid parameter supplied ibv_destroy_counters()
EXAMPLEAn example of use of ibv_counters is shown in ibv_read_counters
SEE ALSOibv_attach_counters_point_flow, ibv_read_counters, ibv_create_flow
AUTHORSRaed Salem <raeds@mellanox.com> Alex Rosenbaum <alexr@mellanox.com> 0
Johanes Gumabo
Data Size : 9,884 byte
man-ibv_destroy_counters.3Build : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 4 / 255,690
Visitor ID : :
Visitor IP : 18.119.113.73 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.