photon  1.1
photon_buffertable.h
Go to the documentation of this file.
1 // =============================================================================
2 // Photon RDMA Library (libphoton)
3 //
4 // Copyright (c) 2016, 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_BUFFERTABLE_H
15 #define PHOTON_BUFFERTABLE_H
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #include <stdlib.h>
22 
23 #include "photon_buffer_internal.h"
24 #include "logging.h"
25 
26 // return nonzero means error
27 int buffertable_init(int max_buffers);
29 
30 int buffertable_find_containing(void* addr, uint64_t size, photonBufferHandle* result);
31 int buffertable_find_exact(void* addr, uint64_t size, photonBufferHandle* result);
32 
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif
41 
struct photon_buffer_handle_t * photonBufferHandle
int buffertable_find_exact(void *addr, uint64_t size, photonBufferHandle *result)
int buffertable_find_containing(void *addr, uint64_t size, photonBufferHandle *result)
int buffertable_insert(photonBufferHandle buffer)
int buffertable_init(int max_buffers)
void buffertable_finalize()
int buffertable_remove(photonBufferHandle buffer)