blob: 65ff9f71f36df9958ae31762dc1b5ad06f511a49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*
*/
//
// Fine-grained shared virtual memory ring
//
#include "runtime.h"
#include "types.h"
//
//
//
union skc_ring *
skc_ring_cl_svm_fine_alloc(struct skc_runtime_impl * const runtime_impl);
void
skc_ring_cl_svm_fine_free(struct skc_runtime_impl * const runtime_impl, union skc_ring * const ring);
//
//
//
void
skc_ring_cl_svm_fine_init(union skc_ring * const ring, skc_uint writes);
//
//
//
skc_uint
skc_ring_cl_svm_fine_read(union skc_ring * const ring, skc_uint const n);
skc_uint
skc_ring_cl_svm_fine_write(union skc_ring * const ring, skc_uint const n);
//
//
//
|