Motr  M0
klnet_core.h File Reference
#include "lib/semaphore.h"
#include "lib/tlist.h"
#include "net/lnet/lnet_core.h"
#include <linux/spinlock.h>
#include <lustre_ver.h>
Include dependency graph for klnet_core.h:

Go to the source code of this file.

Data Structures

struct  nlx_kcore_domain
 
struct  nlx_kcore_transfer_mc
 
struct  nlx_kcore_buffer
 
struct  nlx_kcore_buffer_event
 
struct  nlx_kcore_ops
 

Macros

#define __MOTR_NET_KLNET_CORE_H__
 
#define LNetHandleIsEqual(h1, h2)   ((h1).cookie == (h2).cookie)
 
#define LNetHandleIsInvalid(h)   ((h).cookie == LNET_WIRE_HANDLE_COOKIE_NONE)
 
#define NLX_PAGE_OFFSET(addr)   ((addr) & ~PAGE_MASK)
 

Typedefs

typedef int(* nlx_kcore_queue_op_t) (struct nlx_kcore_transfer_mc *ktm, struct nlx_core_buffer *cb, struct nlx_kcore_buffer *kb)
 

Enumerations

enum  { M0_NET_LNET_MAX_PORTALS = 64, M0_NET_LNET_EQ_SIZE = 0, M0_NET_LNET_PORTAL_MASK = M0_NET_LNET_BUFFER_ID_MAX }
 

Functions

static void nlx_core_kmem_loc_set (struct nlx_core_kmem_loc *loc, struct page *pg, uint32_t off)
 
static bool nlx_kcore_domain_invariant (const struct nlx_kcore_domain *kd)
 
static bool nlx_kcore_buffer_invariant (const struct nlx_kcore_buffer *kcb)
 
static bool nlx_kcore_buffer_event_invariant (const struct nlx_kcore_buffer_event *kbe)
 
static bool nlx_kcore_tm_invariant (const struct nlx_kcore_transfer_mc *kctm)
 
static int nlx_kcore_kcore_dom_init (struct nlx_kcore_domain *kd)
 
static void nlx_kcore_kcore_dom_fini (struct nlx_kcore_domain *kd)
 
static int nlx_kcore_buffer_kla_to_kiov (struct nlx_kcore_buffer *kb, const struct m0_bufvec *bvec)
 
static int nlx_kcore_buffer_uva_to_kiov (struct nlx_kcore_buffer *kb, const struct m0_bufvec *bvec)
 
static bool nlx_kcore_kiov_invariant (const lnet_kiov_t *k, size_t len)
 

Macro Definition Documentation

◆ __MOTR_NET_KLNET_CORE_H__

#define __MOTR_NET_KLNET_CORE_H__

Definition at line 26 of file klnet_core.h.

Function Documentation

◆ nlx_core_kmem_loc_set()

static void nlx_core_kmem_loc_set ( struct nlx_core_kmem_loc loc,
struct page *  pg,
uint32_t  off 
)
static

◆ nlx_kcore_buffer_event_invariant()

static bool nlx_kcore_buffer_event_invariant ( const struct nlx_kcore_buffer_event kbe)
static

◆ nlx_kcore_buffer_invariant()

static bool nlx_kcore_buffer_invariant ( const struct nlx_kcore_buffer kcb)
static

◆ nlx_kcore_domain_invariant()

static bool nlx_kcore_domain_invariant ( const struct nlx_kcore_domain kd)
static

◆ nlx_kcore_kcore_dom_fini()

static void nlx_kcore_kcore_dom_fini ( struct nlx_kcore_domain kd)
static

◆ nlx_kcore_kcore_dom_init()

static int nlx_kcore_kcore_dom_init ( struct nlx_kcore_domain kd)
static

◆ nlx_kcore_tm_invariant()

static bool nlx_kcore_tm_invariant ( const struct nlx_kcore_transfer_mc kctm)
static