FreeBSD kernel kern code
|
#include <sys/cdefs.h>
#include "opt_stack.h"
#include <sys/param.h>
#include <sys/cons.h>
#include <sys/kdb.h>
#include <sys/lock.h>
#include <sys/malloc.h>
#include <sys/mutex.h>
#include <sys/proc.h>
#include <sys/resourcevar.h>
#include <sys/sbuf.h>
#include <sys/sched.h>
#include <sys/stack.h>
#include <sys/sysctl.h>
#include <sys/systm.h>
#include <sys/tty.h>
#include <vm/vm.h>
#include <vm/pmap.h>
#include <vm/vm_map.h>
Go to the source code of this file.
Macros | |
#define | TESTAB(a, b) ((a)<<1 | (b)) |
#define | ONLYA 2 |
#define | ONLYB 1 |
#define | BOTH 3 |
Functions | |
__FBSDID ("$FreeBSD$") | |
static int | proc_sum (struct proc *p, fixpt_t *estcpup) |
static int | thread_compare (struct thread *td, struct thread *td2) |
static int | proc_compare (struct proc *p1, struct proc *p2) |
static int | sbuf_tty_drain (void *a, const char *d, int len) |
void | tty_info (struct tty *tp) |
#define BOTH 3 |
Definition at line 86 of file tty_info.c.
#define ONLYA 2 |
Definition at line 84 of file tty_info.c.
#define ONLYB 1 |
Definition at line 85 of file tty_info.c.
#define TESTAB | ( | a, | |
b | |||
) | ((a)<<1 | (b)) |
Definition at line 83 of file tty_info.c.
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 167 of file tty_info.c.
References BOTH, ONLYA, ONLYB, proc_sum(), and TESTAB.
Referenced by tty_info().
|
static |
Definition at line 89 of file tty_info.c.
References sched_pctcpu().
Referenced by proc_compare().
|
static |
Definition at line 221 of file tty_info.c.
References cnputsn(), kdb_active, and tty_putstrn().
Referenced by tty_info().
|
static |
Definition at line 111 of file tty_info.c.
References BOTH, ONLYA, ONLYB, sched_pctcpu(), and TESTAB.
Referenced by tty_info().
void tty_info | ( | struct tty * | tp | ) |
Definition at line 278 of file tty_info.c.
References averunnable, microuptime(), proc_compare(), rufetchcalc(), sbuf_delete(), sbuf_finish(), sbuf_new(), sbuf_printf(), sbuf_set_drain(), sbuf_tty_drain(), sched_pctcpu(), stack_sbuf_print_flags(), thread_compare(), timevalsub(), and tty_checkoutq().
Referenced by tty_generic_ioctl(), and tty_signal_pgrp().