DOKK / manpages / debian 12 / libibumad-dev / umad_get_fd.3.en
UMAD_GET_FD(3) OpenIB Programmer's Manual UMAD_GET_FD(3)

umad_get_fd - get the umad fd for the requested port

#include <infiniband/umad.h>

int umad_get_fd(int portid);

umad_get_fd() returns the umad fd for the port specified by portid.

umad_get_fd() returns the fd for the portid requested or -EINVAL if portid is invalid.

May 17, 2007 OpenIB