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/kernel/sched_autogroup.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 #ifdef CONFIG_SCHED_AUTOGROUP
    2 
    3 struct autogroup {
    4         /*
    5          * reference doesn't mean how many thread attach to this
    6          * autogroup now. It just stands for the number of task
    7          * could use this autogroup.
    8          */
    9         struct kref             kref;
   10         struct task_group       *tg;
   11         struct rw_semaphore     lock;
   12         unsigned long           id;
   13         int                     nice;
   14 };
   15 
   16 static inline bool task_group_is_autogroup(struct task_group *tg);
   17 static inline struct task_group *
   18 autogroup_task_group(struct task_struct *p, struct task_group *tg);
   19 
   20 #else /* !CONFIG_SCHED_AUTOGROUP */
   21 
   22 static inline void autogroup_init(struct task_struct *init_task) {  }
   23 static inline void autogroup_free(struct task_group *tg) { }
   24 static inline bool task_group_is_autogroup(struct task_group *tg)
   25 {
   26         return 0;
   27 }
   28 
   29 static inline struct task_group *
   30 autogroup_task_group(struct task_struct *p, struct task_group *tg)
   31 {
   32         return tg;
   33 }
   34 
   35 #ifdef CONFIG_SCHED_DEBUG
   36 static inline int autogroup_path(struct task_group *tg, char *buf, int buflen)
   37 {
   38         return 0;
   39 }
   40 #endif
   41 
   42 #endif /* CONFIG_SCHED_AUTOGROUP */

Cache object: 8fea21c5ab24984621ca7a7bf9794366


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