blob: a24791f4af7c7d0f3bb6d802aaba8e37a13c0e27 (
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
47
|
/*
*
* (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved.
*
* This program is free software and is provided to you under the terms of the
* GNU General Public License version 2 as published by the Free Software
* Foundation, and any use by you of this program is subject to the terms
* of such GNU licence.
*
* A copy of the licence is included with the program, and can also be obtained
* from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
/**
* @file
* Base cross-proccess sync API.
*/
#ifndef _BASE_KERNEL_SYNC_H_
#define _BASE_KERNEL_SYNC_H_
#include <linux/ioctl.h>
#define STREAM_IOC_MAGIC '~'
/* Fence insert.
*
* Inserts a fence on the stream operated on.
* Fence can be waited via a base fence wait soft-job
* or triggered via a base fence trigger soft-job.
*
* Fences must be cleaned up with close when no longer needed.
*
* No input/output arguments.
* Returns
* >=0 fd
* <0 error code
*/
#define STREAM_IOC_FENCE_INSERT _IO(STREAM_IOC_MAGIC, 0)
#endif /* _BASE_KERNEL_SYNC_H_ */
|