]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
e5568f75 A |
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. | |
1c79356b | 11 | * |
e5568f75 A |
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 | |
1c79356b A |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
e5568f75 A |
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. | |
1c79356b A |
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 | ||
34 | subsystem | |
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 | ||
49 | routine lock_acquire( | |
50 | lock_set : lock_set_t; | |
51 | lock_id : int); | |
52 | ||
53 | routine lock_release( | |
54 | lock_set : lock_set_t; | |
55 | lock_id : int); | |
56 | ||
57 | routine lock_try( | |
58 | lock_set : lock_set_t; | |
59 | lock_id : int); | |
60 | ||
61 | routine lock_make_stable( | |
62 | lock_set : lock_set_t; | |
63 | lock_id : int); | |
64 | ||
65 | routine lock_handoff( | |
66 | lock_set : lock_set_t; | |
67 | lock_id : int); | |
68 | ||
69 | routine lock_handoff_accept( | |
70 | lock_set : lock_set_t; | |
71 | lock_id : int); | |
72 |