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/chips/nw_mk.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  * Mach Operating System
    3  * Copyright (c) 1991,1990,1989,1988,1987 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:        nw_mk.h,v $
   29  * Revision 2.2  93/08/10  15:18:50  mrt
   30  *      Initial check-in.
   31  *      [93/06/09  15:57:00  jcb]
   32  * 
   33  *
   34  */
   35 
   36 #ifndef _NW_MK_H_
   37 #define _NW_MK_H_ 1
   38 
   39 #ifndef STUB
   40 #include <chips/nw.h>
   41 #include <kern/thread.h>
   42 #else
   43 #include "nw.h"
   44 #include "stub.h"
   45 #endif
   46 
   47 /*** NETWORK INTERFACE -- WRAPPER FOR MACH KERNEL  ***/
   48 
   49 /*** User-trappable functions ***/
   50 
   51 extern nw_result mk_update(mach_port_t master_port, nw_update_type up_type,
   52                            int *up_info);
   53 
   54 extern nw_result mk_lookup(nw_lookup_type lt, int *look_info);
   55 
   56 extern nw_result mk_endpoint_allocate(nw_ep_t epp, nw_protocol protocol,
   57                                       nw_acceptance accept, u_int buffer_size);
   58 
   59 extern nw_result mk_endpoint_deallocate(nw_ep ep);
   60 
   61 extern nw_buffer_t mk_buffer_allocate(nw_ep ep, u_int size);
   62 
   63 extern nw_result mk_buffer_deallocate(nw_ep ep, nw_buffer_t buffer);
   64 
   65 extern nw_result mk_connection_open(nw_ep local_ep, nw_address_1 rem_addr_1,
   66                                     nw_address_2 rem_addr_2, nw_ep remote_ep);
   67 
   68 extern nw_result mk_connection_accept(nw_ep ep, nw_buffer_t msg,
   69                                       nw_ep_t new_epp);
   70 
   71 extern nw_result mk_connection_close(nw_ep ep);
   72 
   73 extern nw_result mk_multicast_add(nw_ep local_ep, nw_address_1 rem_addr_1,
   74                                   nw_address_2 rem_addr_2, nw_ep remote_ep);
   75 
   76 extern nw_result mk_multicast_drop(nw_ep local_ep, nw_address_1 rem_addr_1,
   77                                    nw_address_2 rem_addr_2, nw_ep remote_ep);
   78 
   79 extern nw_result mk_endpoint_status(nw_ep ep, nw_state_t state,
   80                                     nw_peer_t peer);
   81 
   82 extern nw_result mk_send(nw_ep ep, nw_buffer_t msg, nw_options options);
   83 
   84 extern nw_buffer_t mk_receive(nw_ep ep, int time_out);
   85 
   86 extern nw_buffer_t mk_rpc(nw_ep ep, nw_buffer_t send_msg,
   87                           nw_options options, int time_out);
   88 
   89 extern nw_buffer_t mk_select(u_int nep, nw_ep_t epp, int time_out);
   90 
   91 
   92 /*** System-dependent support ***/
   93 
   94 extern void mk_endpoint_collect(task_t task);
   95 
   96 extern void mk_waited_collect(thread_t thread);
   97 
   98 extern void mk_return();
   99 
  100 extern boolean_t mk_deliver_result(thread_t thread, int result);
  101 
  102 extern int mk_fast_sweep();
  103 
  104 extern int mk_slow_sweep();
  105 
  106 #endif /* _NW_MK_H_ */

Cache object: 21bce183a43a75f10f1a064b64ef7141


[ 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.