Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

sched.h File Reference

#include <asm/param.h>
#include <linux/binfmts.h>
#include <linux/personality.h>
#include <linux/tasks.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/times.h>
#include <linux/timex.h>
#include <asm/system.h>
#include <asm/semaphore.h>
#include <asm/page.h>
#include <linux/smp.h>
#include <linux/tty.h>
#include <linux/sem.h>
#include <linux/signal.h>
#include <linux/securebits.h>
#include <linux/fs.h>
#include <linux/time.h>
#include <linux/param.h>
#include <linux/resource.h>
#include <linux/timer.h>
#include <asm/processor.h>

Include dependency graph for sched.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CSIGNAL   0x000000ff
#define CLONE_VM   0x00000100
#define CLONE_FS   0x00000200
#define CLONE_FILES   0x00000400
#define CLONE_SIGHAND   0x00000800
#define CLONE_PID   0x00001000
#define CLONE_PTRACE   0x00002000
#define CLONE_VFORK   0x00004000
#define FSHIFT   11
#define FIXED_1   (1<<FSHIFT)
#define LOAD_FREQ   (5*HZ)
#define EXP_1   1884
#define EXP_5   2014
#define EXP_15   2037
#define CALC_LOAD(load, exp, n)
#define CT_TO_SECS(x)   ((x) / HZ)
#define CT_TO_USECS(x)   (((x) % HZ) * 1000000/HZ)
#define TASK_RUNNING   0
#define TASK_INTERRUPTIBLE   1
#define TASK_UNINTERRUPTIBLE   2
#define TASK_ZOMBIE   4
#define TASK_STOPPED   8
#define TASK_SWAPPING   16
#define TASK_EXCLUSIVE   32
#define SCHED_OTHER   0
#define SCHED_FIFO   1
#define SCHED_RR   2
#define SCHED_YIELD   0x10

Variables

unsigned long global_event
unsigned long avenrun []
int nr_running
int nr_tasks
int last_pid


Define Documentation

#define CALC_LOAD load,
exp,
n   ) 
 

Value:

load *= exp; \
        load += n*(FIXED_1-exp); \
        load >>= FSHIFT;

Definition at line 57 of file sched.h.

#define CLONE_FILES   0x00000400
 

Definition at line 32 of file sched.h.

Referenced by apm_power_off(), copy_files(), do_basic_setup(), media_bay_init(), rtl8139_open(), start_context_thread(), start_kernel(), storage_probe(), and usb_hub_init().

#define CLONE_FS   0x00000200
 

Definition at line 31 of file sched.h.

Referenced by apm_power_off(), copy_fs(), do_basic_setup(), eppconfig(), media_bay_init(), rtl8139_open(), start_context_thread(), start_kernel(), storage_probe(), and usb_hub_init().

#define CLONE_PID   0x00001000
 

Definition at line 34 of file sched.h.

Referenced by do_boot_cpu(), fork_by_hand(), smp_boot_cpus(), and smp_boot_one_cpu().

#define CLONE_PTRACE   0x00002000
 

Definition at line 35 of file sched.h.

Referenced by copy_flags().

#define CLONE_SIGHAND   0x00000800
 

Definition at line 33 of file sched.h.

Referenced by apm_power_off(), copy_sighand(), do_basic_setup(), i2o_block_init(), i2o_init(), i2o_sys_init(), media_bay_init(), start_kernel(), storage_probe(), and usb_hub_init().

#define CLONE_VFORK   0x00004000
 

Definition at line 36 of file sched.h.

Referenced by alpha_vfork(), copy_flags(), do_fork(), m68k_vfork(), and sys_vfork().

#define CLONE_VM   0x00000100
 

Definition at line 30 of file sched.h.

Referenced by alpha_vfork(), copy_mm(), fork_by_hand(), kernel_thread(), m68k_vfork(), main(), smp_boot_one_cpu(), and sys_vfork().

#define CSIGNAL   0x000000ff
 

Definition at line 29 of file sched.h.

Referenced by do_fork().

#define CT_TO_SECS x   )     ((x) / HZ)
 

Definition at line 62 of file sched.h.

Referenced by getrusage(), irix_core_dump(), and osf_getrusage().

#define CT_TO_USECS x   )     (((x) % HZ) * 1000000/HZ)
 

Definition at line 63 of file sched.h.

Referenced by getrusage(), irix_core_dump(), and osf_getrusage().

#define EXP_1   1884
 

Definition at line 53 of file sched.h.

#define EXP_15   2037
 

Definition at line 55 of file sched.h.

#define EXP_5   2014
 

Definition at line 54 of file sched.h.

#define FIXED_1   (1<<FSHIFT)
 

Definition at line 51 of file sched.h.

Referenced by get_loadavg().

#define FSHIFT   11
 

Definition at line 50 of file sched.h.

Referenced by apus_heartbeat(), sys_sysinfo(), and timer_interrupt().

#define LOAD_FREQ   (5*HZ)
 

Definition at line 52 of file sched.h.

#define SCHED_FIFO   1
 

Definition at line 88 of file sched.h.

Referenced by asyncd(), ddv_daemon(), sys_sched_get_priority_min(), and sys_sched_rr_get_interval().

#define SCHED_OTHER   0
 

Definition at line 87 of file sched.h.

Referenced by goodness(), sys_sched_get_priority_min(), and sys_sched_rr_get_interval().

#define SCHED_RR   2
 

Definition at line 89 of file sched.h.

Referenced by schedule(), sys_sched_get_priority_min(), and sys_sched_rr_get_interval().

#define SCHED_YIELD   0x10
 

Definition at line 95 of file sched.h.

Referenced by __verify_write(), do_page_fault(), do_sparc64_fault(), do_sparc_fault(), ext2_truncate(), ffb_lock(), force_user_fault(), locks_wake_up_blocks(), netlink_release(), prev_goodness(), r128_lock(), raid1_make_request(), raid1_run(), refill_freelist(), tcp_send_fin(), and tdfx_lock().

#define TASK_EXCLUSIVE   32
 

Definition at line 82 of file sched.h.

Referenced by __wake_up().

#define TASK_INTERRUPTIBLE   1
 

Definition at line 77 of file sched.h.

Referenced by __initfunc(), _sigpause32_common(), _sigpause_common(), act2000_isa_delay(), adb_read(), adb_wait_reply(), atari_tt_hwclk(), aurora_close(), aux_read(), block_til_ready(), block_till_ready(), card_wait_for_busy_clear(), card_wait_for_ready(), cdrom_sleep(), change_mode(), cleanup_module(), cm_midi_read(), cm_midi_release(), cm_midi_write(), coda_psdev_read(), coda_waitfor_upcall(), cond_wait_interruptible_timeout_irqrestore(), context_thread(), cosa_probe(), cosa_read(), cosa_reset_and_read_id(), cosa_write(), cs4281_midi_release(), cs_read(), cs_write(), cy_close(), cy_wait_until_sent(), do_cdu535_request(), do_ioctl(), do_ncp_rpc_call(), do_poll(), do_read(), do_rt_sigsuspend(), do_rt_sigsuspend32(), do_select(), do_sigsuspend(), do_sony_cd_cmd(), drain_dac(), drain_dac1(), drain_dac2(), drain_out(), drm_dma_enqueue(), drm_flush_queue(), drm_freelist_get(), ds1286_read(), dsp_write_flush(), dtlk_delay(), dz_close(), emu10k1_ecard_init(), ergo_waitpofready(), ergo_writebootimg(), es1370_midi_open(), es1370_midi_read(), es1370_midi_release(), es1370_midi_write(), es1370_open(), es1370_open_dac(), es1370_read(), es1370_write(), es1370_write_dac(), es1371_midi_open(), es1371_midi_read(), es1371_midi_release(), es1371_midi_write(), es1371_open(), es1371_open_dac(), es1371_read(), es1371_write(), es1371_write_dac(), evdev_read(), fd_eject(), fdc_interrupt_wait(), fetch_frame(), ffb_lock(), floppy_open(), floppy_revalidate(), ftape_sleep(), gamma_dma_priority(), gamma_dma_send_buffers(), gamma_lock(),