File: reg_cache.h

package info (click to toggle)
ga 5.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,472 kB
  • sloc: ansic: 192,963; fortran: 53,761; f90: 11,218; cpp: 5,784; makefile: 2,248; sh: 1,945; python: 1,734; perl: 534; csh: 134; asm: 106
file content (21 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _REG_CACHE_H_
#define _REG_CACHE_H_

#include <infiniband/verbs.h>

struct _reg_entry_t {
    void *buf;
    size_t len;
    int lkey;
    int rkey;
    struct ibv_mr *mr;
    struct _reg_entry_t *next;
};

struct _reg_entry_t *reg_cache_find(int, void *, size_t);
int reg_cache_init(int, int);
int reg_cache_destroy(int);
int reg_cache_insert(int rank, void *buf, size_t len, int, int, struct ibv_mr *);
void reg_cache_delete(int rank, void *buf);

#endif /* _REG_CACHE_H_ */