|
|
1.1 ! root 1: /* ! 2: * MIG IPC functions ! 3: * Copyright (C) 2008 Free Software Foundation, Inc. ! 4: * ! 5: * This program is free software; you can redistribute it and/or modify ! 6: * it under the terms of the GNU General Public License as published by ! 7: * the Free Software Foundation; either version 2, or (at your option) ! 8: * any later version. ! 9: * ! 10: * This program is distributed in the hope that it will be useful, ! 11: * but WITHOUT ANY WARRANTY; without even the implied warranty of ! 12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! 13: * GNU General Public License for more details. ! 14: * ! 15: * You should have received a copy of the GNU General Public License ! 16: * along with this program; if not, write to the Free Software ! 17: * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. ! 18: * ! 19: * Author: Barry deFreese. ! 20: */ ! 21: /* ! 22: * MIG IPC functions. ! 23: * ! 24: */ ! 25: ! 26: #ifndef _IPC_MIG_H_ ! 27: #define _IPC_MIG_H_ ! 28: ! 29: #include <mach/std_types.h> ! 30: ! 31: /* ! 32: * Routine: mach_msg_send_from_kernel ! 33: * Purpose: ! 34: * Send a message from the kernel. ! 35: * ! 36: * This is used by the client side of KernelUser interfaces ! 37: * to implement SimpleRoutines. Currently, this includes ! 38: * device_reply and memory_object messages. ! 39: * Conditions: ! 40: * Nothing locked. ! 41: * Returns: ! 42: * MACH_MSG_SUCCESS Sent the message. ! 43: * MACH_SEND_INVALID_DATA Bad destination port. ! 44: */ ! 45: extern mach_msg_return_t mach_msg_send_from_kernel( ! 46: mach_msg_header_t *msg, ! 47: mach_msg_size_t send_size); ! 48: ! 49: /* ! 50: * Routine: mach_msg_abort_rpc ! 51: * Purpose: ! 52: * Destroy the thread's ith_rpc_reply port. ! 53: * This will interrupt a mach_msg_rpc_from_kernel ! 54: * with a MACH_RCV_PORT_DIED return code. ! 55: * Conditions: ! 56: * Nothing locked. ! 57: */ ! 58: extern void mach_msg_abort_rpc (ipc_thread_t); ! 59: ! 60: extern mach_msg_return_t mach_msg_rpc_from_kernel( ! 61: mach_msg_header_t *msg, ! 62: mach_msg_size_t send_size, ! 63: mach_msg_size_t reply_size); ! 64: ! 65: #endif /* _IPC_MIG_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.