]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/mach/lock_set.defs
xnu-201.19.tar.gz
[apple/xnu.git] / osfmk / mach / lock_set.defs
... / ...
CommitLineData
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22/*
23 * @OSF_COPYRIGHT@
24 *
25 */
26/*
27 * File: mach/lock_set.defs
28 * Author: Joseph CaraDonna
29 *
30 * Exported kernel calls
31 *
32 */
33
34subsystem
35#if KERNEL_SERVER
36 KernelServer
37#endif /* KERNEL_SERVER */
38 lock_set 617000;
39
40#include <mach/std_types.defs>
41#include <mach/mach_types.defs>
42
43/*
44 * a lock_set_t is created and destroyed through the task object.
45 * lock_set_create(task,&lock_set_t,...);
46 * lock_set_destroy(task,lock_set_t);
47 */
48
49routine lock_acquire(
50 lock_set : lock_set_t;
51 lock_id : int);
52
53routine lock_release(
54 lock_set : lock_set_t;
55 lock_id : int);
56
57routine lock_try(
58 lock_set : lock_set_t;
59 lock_id : int);
60
61routine lock_make_stable(
62 lock_set : lock_set_t;
63 lock_id : int);
64
65routine lock_handoff(
66 lock_set : lock_set_t;
67 lock_id : int);
68
69routine lock_handoff_accept(
70 lock_set : lock_set_t;
71 lock_id : int);
72