MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
FabricInterfaceDescription.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Contributors to the Media eXchange Layer project.
2// SPDX-License-Identifier: Apache-2.0
3#pragma once
4
5#include <picojson/wrapper.h>
6#include <mxl/fabrics.h>
7#include "FabricInfo.hpp"
8#include "Provider.hpp"
9
11{
18 {
19 public:
25 [[nodiscard]]
26 static std::optional<FabricInterfaceDescription> create(FabricInfoView info);
27
33 [[nodiscard]]
35
37 [[nodiscard]]
38 static ::mxlFabricsInterfaceList* freeRawLinkedListNode(::mxlFabricsInterfaceList*);
39
41 [[nodiscard]]
42 std::uint64_t caps() const noexcept
43 {
44 return _rawCaps;
45 }
46
47 private:
48 explicit FabricInterfaceDescription(Provider, std::string, std::string, std::uint64_t, std::uint64_t, picojson::object);
49
50 private:
52 std::string _node;
53 std::string _service;
54 std::uint64_t _maxMessageSize;
55 std::uint64_t _rawCaps;
56 picojson::object _attr;
57 };
58}
Non-owning view of a FabricInfo. Returned when iterating over a FabricInfoList.
static std::optional< FabricInterfaceDescription > create(FabricInfoView info)
::mxlFabricsInterfaceList * freeRawLinkedListNode(::mxlFabricsInterfaceList *)
::mxlFabricsInterfaceList * toRawLinkedListNode(::mxlFabricsInterfaceList *next=nullptr)
FabricInterfaceDescription(Provider, std::string, std::string, std::uint64_t, std::uint64_t, picojson::object)
std::uint64_t caps() const noexcept
Return the raw MXL_FABRICS_IFACE_CAP_* flags for this interface.
struct mxlFabricsInterfaceList_t mxlFabricsInterfaceList
Definition fabrics.h:116
Provider
Internal representation of supported libfabric providers.
Definition Provider.hpp:17