The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/osfmk/mach/kern_return.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
    3  *
    4  * @APPLE_LICENSE_HEADER_START@
    5  * 
    6  * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
    7  * 
    8  * This file contains Original Code and/or Modifications of Original Code
    9  * as defined in and that are subject to the Apple Public Source License
   10  * Version 2.0 (the 'License'). You may not use this file except in
   11  * compliance with the License. Please obtain a copy of the License at
   12  * http://www.opensource.apple.com/apsl/ and read it before using this
   13  * file.
   14  * 
   15  * The Original Code and all software distributed under the License are
   16  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   17  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   18  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   19  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   20  * Please see the License for the specific language governing rights and
   21  * limitations under the License.
   22  * 
   23  * @APPLE_LICENSE_HEADER_END@
   24  */
   25 /*
   26  * @OSF_COPYRIGHT@
   27  */
   28 /* 
   29  * Mach Operating System
   30  * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
   31  * All Rights Reserved.
   32  * 
   33  * Permission to use, copy, modify and distribute this software and its
   34  * documentation is hereby granted, provided that both the copyright
   35  * notice and this permission notice appear in all copies of the
   36  * software, derivative works or modified versions, and any portions
   37  * thereof, and that both notices appear in supporting documentation.
   38  * 
   39  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
   40  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
   41  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
   42  * 
   43  * Carnegie Mellon requests users of this software to return to
   44  * 
   45  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
   46  *  School of Computer Science
   47  *  Carnegie Mellon University
   48  *  Pittsburgh PA 15213-3890
   49  * 
   50  * any improvements or extensions that they make and grant Carnegie Mellon
   51  * the rights to redistribute these changes.
   52  */
   53 /*
   54  */
   55 /*
   56  *      File:   h/kern_return.h
   57  *      Author: Avadis Tevanian, Jr.
   58  *      Date:   1985
   59  *
   60  *      Kernel return codes.
   61  *
   62  */
   63 
   64 #ifndef _MACH_KERN_RETURN_H_
   65 #define _MACH_KERN_RETURN_H_
   66 
   67 #include <mach/machine/kern_return.h>
   68 
   69 /*
   70  * N.B.:        If you add errors, please update
   71  *                      mach_services/lib/libmach/err_kern.sub
   72  */
   73 
   74 #define KERN_SUCCESS                    0
   75 
   76 #define KERN_INVALID_ADDRESS            1
   77                 /* Specified address is not currently valid.
   78                  */
   79 
   80 #define KERN_PROTECTION_FAILURE         2
   81                 /* Specified memory is valid, but does not permit the
   82                  * required forms of access.
   83                  */
   84 
   85 #define KERN_NO_SPACE                   3
   86                 /* The address range specified is already in use, or
   87                  * no address range of the size specified could be
   88                  * found.
   89                  */
   90 
   91 #define KERN_INVALID_ARGUMENT           4
   92                 /* The function requested was not applicable to this
   93                  * type of argument, or an argument is invalid
   94                  */
   95 
   96 #define KERN_FAILURE                    5
   97                 /* The function could not be performed.  A catch-all.
   98                  */
   99 
  100 #define KERN_RESOURCE_SHORTAGE          6
  101                 /* A system resource could not be allocated to fulfill
  102                  * this request.  This failure may not be permanent.
  103                  */
  104 
  105 #define KERN_NOT_RECEIVER               7
  106                 /* The task in question does not hold receive rights
  107                  * for the port argument.
  108                  */
  109 
  110 #define KERN_NO_ACCESS                  8
  111                 /* Bogus access restriction.
  112                  */
  113 
  114 #define KERN_MEMORY_FAILURE             9
  115                 /* During a page fault, the target address refers to a
  116                  * memory object that has been destroyed.  This
  117                  * failure is permanent.
  118                  */
  119 
  120 #define KERN_MEMORY_ERROR               10
  121                 /* During a page fault, the memory object indicated
  122                  * that the data could not be returned.  This failure
  123                  * may be temporary; future attempts to access this
  124                  * same data may succeed, as defined by the memory
  125                  * object.
  126                  */
  127 
  128 #define KERN_ALREADY_IN_SET             11
  129                 /* The receive right is already a member of the portset.
  130                  */
  131 
  132 #define KERN_NOT_IN_SET                 12
  133                 /* The receive right is not a member of a port set.
  134                  */
  135 
  136 #define KERN_NAME_EXISTS                13
  137                 /* The name already denotes a right in the task.
  138                  */
  139 
  140 #define KERN_ABORTED                    14
  141                 /* The operation was aborted.  Ipc code will
  142                  * catch this and reflect it as a message error.
  143                  */
  144 
  145 #define KERN_INVALID_NAME               15
  146                 /* The name doesn't denote a right in the task.
  147                  */
  148 
  149 #define KERN_INVALID_TASK               16
  150                 /* Target task isn't an active task.
  151                  */
  152 
  153 #define KERN_INVALID_RIGHT              17
  154                 /* The name denotes a right, but not an appropriate right.
  155                  */
  156 
  157 #define KERN_INVALID_VALUE              18
  158                 /* A blatant range error.
  159                  */
  160 
  161 #define KERN_UREFS_OVERFLOW             19
  162                 /* Operation would overflow limit on user-references.
  163                  */
  164 
  165 #define KERN_INVALID_CAPABILITY         20
  166                 /* The supplied (port) capability is improper.
  167                  */
  168 
  169 #define KERN_RIGHT_EXISTS               21
  170                 /* The task already has send or receive rights
  171                  * for the port under another name.
  172                  */
  173 
  174 #define KERN_INVALID_HOST               22
  175                 /* Target host isn't actually a host.
  176                  */
  177 
  178 #define KERN_MEMORY_PRESENT             23
  179                 /* An attempt was made to supply "precious" data
  180                  * for memory that is already present in a
  181                  * memory object.
  182                  */
  183 
  184 #define KERN_MEMORY_DATA_MOVED          24
  185                 /* A page was requested of a memory manager via
  186                  * memory_object_data_request for an object using
  187                  * a MEMORY_OBJECT_COPY_CALL strategy, with the
  188                  * VM_PROT_WANTS_COPY flag being used to specify
  189                  * that the page desired is for a copy of the
  190                  * object, and the memory manager has detected
  191                  * the page was pushed into a copy of the object
  192                  * while the kernel was walking the shadow chain
  193                  * from the copy to the object. This error code
  194                  * is delivered via memory_object_data_error
  195                  * and is handled by the kernel (it forces the
  196                  * kernel to restart the fault). It will not be
  197                  * seen by users.
  198                  */
  199 
  200 #define KERN_MEMORY_RESTART_COPY        25
  201                 /* A strategic copy was attempted of an object
  202                  * upon which a quicker copy is now possible.
  203                  * The caller should retry the copy using
  204                  * vm_object_copy_quickly. This error code
  205                  * is seen only by the kernel.
  206                  */
  207 
  208 #define KERN_INVALID_PROCESSOR_SET      26
  209                 /* An argument applied to assert processor set privilege
  210                  * was not a processor set control port.
  211                  */
  212 
  213 #define KERN_POLICY_LIMIT               27
  214                 /* The specified scheduling attributes exceed the thread's
  215                  * limits.
  216                  */
  217 
  218 #define KERN_INVALID_POLICY             28
  219                 /* The specified scheduling policy is not currently
  220                  * enabled for the processor set.
  221                  */
  222 
  223 #define KERN_INVALID_OBJECT             29
  224                 /* The external memory manager failed to initialize the
  225                  * memory object.
  226                  */
  227 
  228 #define KERN_ALREADY_WAITING            30
  229                 /* A thread is attempting to wait for an event for which 
  230                  * there is already a waiting thread.
  231                  */
  232 
  233 #define KERN_DEFAULT_SET                31
  234                 /* An attempt was made to destroy the default processor
  235                  * set.
  236                  */
  237 
  238 #define KERN_EXCEPTION_PROTECTED        32
  239                 /* An attempt was made to fetch an exception port that is
  240                  * protected, or to abort a thread while processing a
  241                  * protected exception.
  242                  */
  243 
  244 #define KERN_INVALID_LEDGER             33
  245                 /* A ledger was required but not supplied.
  246                  */
  247 
  248 #define KERN_INVALID_MEMORY_CONTROL     34
  249                 /* The port was not a memory cache control port.
  250                  */
  251 
  252 #define KERN_INVALID_SECURITY           35
  253                 /* An argument supplied to assert security privilege    
  254                  * was not a host security port.
  255                  */
  256                 
  257 #define KERN_NOT_DEPRESSED              36
  258                 /* thread_depress_abort was called on a thread which
  259                  * was not currently depressed.
  260                  */
  261                 
  262 #define KERN_TERMINATED                 37
  263                 /* Object has been terminated and is no longer available
  264                  */
  265 
  266 #define KERN_LOCK_SET_DESTROYED         38
  267                 /* Lock set has been destroyed and is no longer available.
  268                  */
  269 
  270 #define KERN_LOCK_UNSTABLE              39
  271                 /* The thread holding the lock terminated before releasing
  272                  * the lock
  273                  */
  274 
  275 #define KERN_LOCK_OWNED                 40
  276                 /* The lock is already owned by another thread
  277                  */
  278 
  279 #define KERN_LOCK_OWNED_SELF            41
  280                 /* The lock is already owned by the calling thread
  281                  */
  282 
  283 #define KERN_SEMAPHORE_DESTROYED        42
  284                 /* Semaphore has been destroyed and is no longer available.
  285                  */
  286 
  287 #define KERN_RPC_SERVER_TERMINATED      43
  288                 /* Return from RPC indicating the target server was 
  289                  * terminated before it successfully replied 
  290                  */
  291 
  292 #define KERN_RPC_TERMINATE_ORPHAN       44
  293                 /* Terminate an orphaned activation.
  294                  */
  295 
  296 #define KERN_RPC_CONTINUE_ORPHAN        45
  297                 /* Allow an orphaned activation to continue executing.
  298                  */
  299 
  300 #define KERN_NOT_SUPPORTED              46
  301                 /* Empty thread activation (No thread linked to it)
  302                  */
  303 
  304 #define KERN_NODE_DOWN                  47
  305                 /* Remote node down or inaccessible.
  306                  */
  307 
  308 #define KERN_NOT_WAITING                48
  309                 /* A signalled thread was not actually waiting. */
  310 
  311 #define KERN_OPERATION_TIMED_OUT        49
  312                 /* Some thread-oriented operation (semaphore_wait) timed out
  313                  */
  314 
  315 #define KERN_RETURN_MAX                 0x100
  316                 /* Maximum return value allowable
  317                  */
  318 
  319 #endif  /* _MACH_KERN_RETURN_H_ */

Cache object: e97e1e76ccb0251b9ad6c630ee63b232


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.