photon  1.1
photon_ud.h
Go to the documentation of this file.
1 // =============================================================================
2 // Photon RDMA Library (libphoton)
3 //
4 // Copyright (c) 2017, Trustees of Indiana University,
5 // All rights reserved.
6 //
7 // This software may be modified and distributed under the terms of the BSD
8 // license. See the COPYING file for details.
9 //
10 // This software was created at the Indiana University Center for Research in
11 // Extreme Scale Technologies (CREST).
12 // =============================================================================
13 
14 #ifndef PHOTON_UD_H
15 #define PHOTON_UD_H
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
24 
26 
28 int photon_send(photonAddr addr, void *ptr, uint64_t size, int flags, photon_rid *request);
29 int photon_recv(photon_rid request, void *ptr, uint64_t size, int flags);
30 
31 // Tell photon that we want to accept messages for certain addresses
32 // identified by address family af
33 int photon_register_addr(photonAddr addr, int af);
34 int photon_unregister_addr(photonAddr addr, int af);
35 
36 // Fill in addr with the local device address, using af as the hint
37 // default will be AF_INET6 and port gid
38 int photon_get_dev_addr(int af, photonAddr addr);
39 int photon_get_dev_name(char **dev_name);
40 
41 int photon_probe(photonAddr addr, int *flag, photonStatus status);
42 
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif
int photon_recv(photon_rid request, void *ptr, uint64_t size, int flags)
Definition: libphoton.c:512
int photon_probe(photonAddr addr, int *flag, photonStatus status)
Definition: libphoton.c:502
uint64_t photon_rid
The Photon request ID.
Definition: photon.h:75
int photon_register_addr(photonAddr addr, int af)
Definition: libphoton.c:389
union photon_addr_t * photonAddr
Convenience pointer type for the address union.
Definition: photon.h:112
int photon_unregister_addr(photonAddr addr, int af)
Definition: libphoton.c:394
int photon_send(photonAddr addr, void *ptr, uint64_t size, int flags, photon_rid *request)
Experimental UD interface.
Definition: libphoton.c:507
int photon_get_dev_addr(int af, photonAddr addr)
Definition: libphoton.c:379
int photon_get_dev_name(char **dev_name)
Definition: libphoton.c:384