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/netgraph/atm/ngatmbase.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) 2001-2003
    3  *      Fraunhofer Institute for Open Communication Systems (FhG Fokus).
    4  *      All rights reserved.
    5  *
    6  * Author: Harti Brandt <harti@freebsd.org>
    7  *
    8  * Redistribution of this software and documentation and use in source and
    9  * binary forms, with or without modification, are permitted provided that
   10  * the following conditions are met:
   11  *
   12  * 1. Redistributions of source code or documentation must retain the above
   13  *    copyright notice, this list of conditions and the following disclaimer.
   14  * 2. Redistributions in binary form must reproduce the above copyright
   15  *    notice, this list of conditions and the following disclaimer in the
   16  *    documentation and/or other materials provided with the distribution.
   17  *
   18  * THIS SOFTWARE AND DOCUMENTATION IS PROVIDED BY FRAUNHOFER FOKUS
   19  * AND ITS CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
   20  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   21  * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
   22  * FRAUNHOFER FOKUS OR ITS CONTRIBUTORS  BE LIABLE FOR ANY DIRECT, INDIRECT,
   23  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
   25  * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
   26  * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
   27  * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
   28  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   29  *
   30  * $FreeBSD: releng/8.3/sys/netgraph/atm/ngatmbase.h 139823 2005-01-07 01:45:51Z imp $
   31  *
   32  * In-kernel UNI stack message functions.
   33  */
   34 #ifndef _NETGRAPH_ATM_NGATMBASE_H_
   35 #define _NETGRAPH_ATM_NGATMBASE_H_
   36 
   37 /* forward declarations */
   38 struct mbuf;
   39 struct uni_msg;
   40 
   41 struct mbuf *uni_msg_pack_mbuf(struct uni_msg *, void *, size_t);
   42 
   43 #ifdef NGATM_DEBUG
   44 
   45 struct uni_msg *_uni_msg_alloc(size_t, const char *, int);
   46 struct uni_msg *_uni_msg_build(const char *, int, void *, ...);
   47 void _uni_msg_destroy(struct uni_msg *, const char *, int);
   48 int _uni_msg_unpack_mbuf(struct mbuf *, struct uni_msg **, const char *, int);
   49 
   50 #define uni_msg_alloc(S) _uni_msg_alloc((S), __FILE__, __LINE__)
   51 #define uni_msg_build(P...) _uni_msg_build(__FILE__, __LINE__, P)
   52 #define uni_msg_destroy(M) _uni_msg_destroy((M), __FILE__, __LINE__)
   53 #define uni_msg_unpack_mbuf(M, PP) \
   54             _uni_msg_unpack_mbuf((M), (PP), __FILE__, __LINE__)
   55 
   56 #else /* !NGATM_DEBUG */
   57 
   58 struct uni_msg *uni_msg_alloc(size_t);
   59 struct uni_msg *uni_msg_build(void *, ...);
   60 void uni_msg_destroy(struct uni_msg *);
   61 int uni_msg_unpack_mbuf(struct mbuf *, struct uni_msg **);
   62 
   63 #endif
   64 #endif

Cache object: 60a87fd5f87a2119d1c1d54f43cf20b4


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