1 .\"
2 .\" Mach Operating System
3 .\" Copyright (c) 1991,1990 Carnegie Mellon University
4 .\" All Rights Reserved.
5 .\"
6 .\" Permission to use, copy, modify and distribute this software and its
7 .\" documentation is hereby granted, provided that both the copyright
8 .\" notice and this permission notice appear in all copies of the
9 .\" software, derivative works or modified versions, and any portions
10 .\" thereof, and that both notices appear in supporting documentation.
11 .\"
12 .\" CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 .\" CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 .\" ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 .\"
16 .\" Carnegie Mellon requests users of this software to return to
17 .\"
18 .\" Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 .\" School of Computer Science
20 .\" Carnegie Mellon University
21 .\" Pittsburgh PA 15213-3890
22 .\"
23 .\" any improvements or extensions that they make and grant Carnegie Mellon
24 .\" the rights to redistribute these changes.
25 .\"
26 .\"
27 .\" HISTORY
28 .\" $Log: memory_object_destroy.man,v $
29 .\" Revision 2.5 93/05/10 19:33:49 rvb
30 .\" updated
31 .\" [93/04/21 16:08:36 lli]
32 .\"
33 .\" Revision 2.4 91/05/14 17:09:43 mrt
34 .\" Correcting copyright
35 .\"
36 .\" Revision 2.3 91/02/14 14:13:04 mrt
37 .\" Changed to new Mach copyright
38 .\" [91/02/12 18:13:43 mrt]
39 .\"
40 .\" Revision 2.2 90/08/07 18:40:57 rpd
41 .\" Created.
42 .\"
43 .TH memory_object_destroy 2 12/18/89
44 .CM 4
45 .SH NAME
46 .nf
47 memory_object_destroy \- indicates that the object should be destroyed
48 .SH SYNOPSIS
49 .nf
50 .ft B
51 #include <mach.h>
52
53 .nf
54 .ft B
55 kern_return_t memory_object_destroy(memory_control, reason);
56 mach_port_t
57 memory_control;
58 kern_return_t reason;
59
60
61 .fi
62 .ft P
63 .SH DESCRIPTION
64
65 .B memory_object_destroy
66 tells the kernel to shut down the memory object.
67 As a result of this call the kernel will no longer support paging activity
68 or any memory_object calls on this object, and all rights
69 to the memory object port, the memory control
70 port and the memory name port will be returned to the memory manager in a
71 .B memory_object_terminate
72 call. If the memory manager is concerned that
73 any modified cached data be returned to it before the object is terminated,
74 it should call
75 .B memory_object_lock_request
76 with
77 .B should_flush
78 set
79 and a lock value of
80 .B VM_PROT_WRITE
81 before making this call.
82
83 .SH ARGUMENTS
84 .TP 15
85 .B
86 memory_control
87 The port, provided by the kernel
88 in a
89 .B memory_object_init
90 call, to which cache management requests may be issued.
91 .TP 15
92 .B
93 reason
94 An error code indicating when the object must be destroyed.
95
96 .SH DIAGNOSTICS
97 .TP 25
98 KERN_SUCCESS
99 This routine does not receive a reply message (and consequently
100 has no return value), so only message transmission errors apply.
101
102 .SH SEE ALSO
103 .B memory_object_terminate, memory_object_lock_request
104
105 .SH BUGS
106
107 The error code is currently ingnored.
108
Cache object: 2ce2983780015dd5a66a598855b73656
|