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.4 2015/10/06 22:13:39 christos 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.4 2015/10/06 22:13:39 christos Exp $");
    8 
    9 #define _CALLOUT_PRIVATE
   10 #define __MUTEX_PRIVATE
   11 #define __KAUTH_PRIVATE
   12 
   13 #include <sys/param.h>
   14 #include <sys/lwp.h>
   15 #include <sys/mbuf.h>
   16 #include <sys/mutex.h>
   17 #include <sys/proc.h>
   18 #include <sys/sched.h>
   19 #include <sys/sleepq.h>
   20 #include <sys/time.h>
   21 #include <sys/ucontext.h>
   22 #include <sys/uio.h>
   23 #include <sys/un.h>
   24 #include <sys/unpcb.h>
   25 #include <sys/vnode.h>
   26 #include <sys/specificdata.h>
   27 #include <sys/kauth.h>
   28 
   29 /*
   30  * Without a dummy function referencing some of the types, gcc will
   31  * not emit any debug information.
   32  */
   33 proc_t  *_debugsym_dummyfunc(vnode_t *vp);
   34 
   35 proc_t *
   36 _debugsym_dummyfunc(vnode_t *vp)
   37 {
   38         struct kauth_cred *cr = (kauth_cred_t)vp;
   39 
   40         return cr->cr_uid ? ((lwp_t *)vp->v_mount)->l_proc : NULL;
   41 }

Cache object: 9af30f8a9d6f7f779190a2d8a1b0624f


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