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/conf/debugsyms.c

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 /*      $NetBSD: debugsyms.c,v 1.2 2008/06/06 13:21:00 ad Exp $ */
    2 /*
    3  * This file is in the public domain.
    4  */
    5 
    6 #include <sys/cdefs.h>
    7 __KERNEL_RCSID(0, "$NetBSD: debugsyms.c,v 1.2 2008/06/06 13:21:00 ad Exp $");
    8 
    9 #define _CALLOUT_PRIVATE
   10 #define __MUTEX_PRIVATE
   11 
   12 #include <sys/param.h>
   13 #include <sys/lwp.h>
   14 #include <sys/mbuf.h>
   15 #include <sys/mutex.h>
   16 #include <sys/proc.h>
   17 #include <sys/sched.h>
   18 #include <sys/sleepq.h>
   19 #include <sys/time.h>
   20 #include <sys/ucontext.h>
   21 #include <sys/uio.h>
   22 #include <sys/un.h>
   23 #include <sys/unpcb.h>
   24 #include <sys/user.h>
   25 #include <sys/vnode.h>
   26 
   27 /*
   28  * Without a dummy function referencing some of the types, gcc will
   29  * not emit any debug information.
   30  */
   31 proc_t  *_debugsym_dummyfunc(vnode_t *vp);
   32 
   33 proc_t *
   34 _debugsym_dummyfunc(vnode_t *vp)
   35 {
   36 
   37         return ((lwp_t *)vp->v_mount)->l_proc;
   38 }

Cache object: 6b45ae822ba788c2c475b97c021567ef


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