<?xml version="1.0" encoding="ANSI_X3.4-1968" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968" /><title>Delaying, scheduling, and timer routines</title><meta name="generator" content="DocBook XSL Stylesheets V1.75.2" /><link rel="home" href="index.html" title="Linux Device Drivers" /><link rel="up" href="ch01.html" title="Chapter 1. Driver Basics" /><link rel="prev" href="re28.html" title="/builddir/build/BUILD/kernel-2.6.32-71.14.1.el6/linux-2.6.32-71.14.1.el6.noarch//arch/x86/include/asm/unaligned.h" /><link rel="next" href="re29.html" title="struct task_cputime" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Delaying, scheduling, and timer routines</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="re28.html">Prev</a> </td><th width="60%" align="center">Chapter 1. Driver Basics</th><td width="20%" align="right"> <a accesskey="n" href="re29.html">Next</a></td></tr></table><hr /></div><div class="sect1" title="Delaying, scheduling, and timer routines"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="id2597599"></a>Delaying, scheduling, and timer routines</h2></div></div></div><div class="toc"><dl><dt><span class="refentrytitle"><a href="re29.html"><span>struct task_cputime</span></a></span><span class="refpurpose"> — collected CPU time counts </span></dt><dt><span class="refentrytitle"><a href="re30.html"><span>struct thread_group_cputimer</span></a></span><span class="refpurpose"> — thread group interval timer counts </span></dt><dt><span class="refentrytitle"><a href="re31.html"><span>pid_alive</span></a></span><span class="refpurpose"> — check that a task structure is not stale </span></dt><dt><span class="refentrytitle"><a href="re32.html"><span>is_global_init</span></a></span><span class="refpurpose"> — check if a task structure is init </span></dt><dt><span class="refentrytitle"><a href="re33.html"><span>kthread_bind</span></a></span><span class="refpurpose"> — bind a just-created kthread to a cpu. </span></dt><dt><span class="refentrytitle"><a href="re34.html"><span>wake_up_process</span></a></span><span class="refpurpose"> — Wake up a specific process </span></dt><dt><span class="refentrytitle"><a href="re35.html"><span>preempt_notifier_register</span></a></span><span class="refpurpose"> — tell me when current is being preempted & rescheduled </span></dt><dt><span class="refentrytitle"><a href="re36.html"><span>preempt_notifier_unregister</span></a></span><span class="refpurpose"> — no longer interested in preemption notifications </span></dt><dt><span class="refentrytitle"><a href="re37.html"><span>__wake_up</span></a></span><span class="refpurpose"> — wake up threads blocked on a waitqueue. </span></dt><dt><span class="refentrytitle"><a href="re38.html"><span>__wake_up_sync_key</span></a></span><span class="refpurpose"> — wake up threads blocked on a waitqueue. </span></dt><dt><span class="refentrytitle"><a href="re39.html"><span>complete</span></a></span><span class="refpurpose"> — signals a single thread waiting on this completion </span></dt><dt><span class="refentrytitle"><a href="re40.html"><span>complete_all</span></a></span><span class="refpurpose"> — signals all threads waiting on this completion </span></dt><dt><span class="refentrytitle"><a href="re41.html"><span>wait_for_completion</span></a></span><span class="refpurpose"> — waits for completion of a task </span></dt><dt><span class="refentrytitle"><a href="re42.html"><span>wait_for_completion_timeout</span></a></span><span class="refpurpose"> — waits for completion of a task (w/timeout) </span></dt><dt><span class="refentrytitle"><a href="re43.html"><span>wait_for_completion_interruptible</span></a></span><span class="refpurpose"> — waits for completion of a task (w/intr) </span></dt><dt><span class="refentrytitle"><a href="re44.html"><span>wait_for_completion_interruptible_timeout</span></a></span><span class="refpurpose"> — waits for completion (w/(to,intr)) </span></dt><dt><span class="refentrytitle"><a href="re45.html"><span>wait_for_completion_killable</span></a></span><span class="refpurpose"> — waits for completion of a task (killable) </span></dt><dt><span class="refentrytitle"><a href="re46.html"><span>try_wait_for_completion</span></a></span><span class="refpurpose"> — try to decrement a completion without blocking </span></dt><dt><span class="refentrytitle"><a href="re47.html"><span>completion_done</span></a></span><span class="refpurpose"> — Test to see if a completion has any waiters </span></dt><dt><span class="refentrytitle"><a href="re48.html"><span>task_nice</span></a></span><span class="refpurpose"> — return the nice value of a given task. </span></dt><dt><span class="refentrytitle"><a href="re49.html"><span>sched_setscheduler</span></a></span><span class="refpurpose"> — change the scheduling policy and/or RT priority of a thread. </span></dt><dt><span class="refentrytitle"><a href="re50.html"><span>yield</span></a></span><span class="refpurpose"> — yield the current processor to other threads. </span></dt><dt><span class="refentrytitle"><a href="re51.html"><span>__round_jiffies</span></a></span><span class="refpurpose"> — function to round jiffies to a full second </span></dt><dt><span class="refentrytitle"><a href="re52.html"><span>__round_jiffies_relative</span></a></span><span class="refpurpose"> — function to round jiffies to a full second </span></dt><dt><span class="refentrytitle"><a href="re53.html"><span>round_jiffies</span></a></span><span class="refpurpose"> — function to round jiffies to a full second </span></dt><dt><span class="refentrytitle"><a href="re54.html"><span>round_jiffies_relative</span></a></span><span class="refpurpose"> — function to round jiffies to a full second </span></dt><dt><span class="refentrytitle"><a href="re55.html"><span>__round_jiffies_up</span></a></span><span class="refpurpose"> — function to round jiffies up to a full second </span></dt><dt><span class="refentrytitle"><a href="re56.html"><span>__round_jiffies_up_relative</span></a></span><span class="refpurpose"> — function to round jiffies up to a full second </span></dt><dt><span class="refentrytitle"><a href="re57.html"><span>round_jiffies_up</span></a></span><span class="refpurpose"> — function to round jiffies up to a full second </span></dt><dt><span class="refentrytitle"><a href="re58.html"><span>round_jiffies_up_relative</span></a></span><span class="refpurpose"> — function to round jiffies up to a full second </span></dt><dt><span class="refentrytitle"><a href="re59.html"><span>init_timer_key</span></a></span><span class="refpurpose"> — initialize a timer </span></dt><dt><span class="refentrytitle"><a href="re60.html"><span>mod_timer_pending</span></a></span><span class="refpurpose"> — modify a pending timer's timeout </span></dt><dt><span class="refentrytitle"><a href="re61.html"><span>mod_timer</span></a></span><span class="refpurpose"> — modify a timer's timeout </span></dt><dt><span class="refentrytitle"><a href="re62.html"><span>mod_timer_pinned</span></a></span><span class="refpurpose"> — modify a timer's timeout </span></dt><dt><span class="refentrytitle"><a href="re63.html"><span>add_timer</span></a></span><span class="refpurpose"> — start a timer </span></dt><dt><span class="refentrytitle"><a href="re64.html"><span>add_timer_on</span></a></span><span class="refpurpose"> — start a timer on a particular CPU </span></dt><dt><span class="refentrytitle"><a href="re65.html"><span>del_timer</span></a></span><span class="refpurpose"> — deactive a timer. </span></dt><dt><span class="refentrytitle"><a href="re66.html"><span>try_to_del_timer_sync</span></a></span><span class="refpurpose"> — Try to deactivate a timer </span></dt><dt><span class="refentrytitle"><a href="re67.html"><span>del_timer_sync</span></a></span><span class="refpurpose"> — deactivate a timer and wait for the handler to finish. </span></dt><dt><span class="refentrytitle"><a href="re68.html"><span>schedule_timeout</span></a></span><span class="refpurpose"> — sleep until timeout </span></dt><dt><span class="refentrytitle"><a href="re69.html"><span>msleep</span></a></span><span class="refpurpose"> — sleep safely even with waitqueue interruptions </span></dt><dt><span class="refentrytitle"><a href="re70.html"><span>msleep_interruptible</span></a></span><span class="refpurpose"> — sleep waiting for signals </span></dt></dl></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="re28.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="re29.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"> /builddir/build/BUILD/kernel-2.6.32-71.14.1.el6/linux-2.6.32-71.14.1.el6.noarch//arch/x86/include/asm/unaligned.h  </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span>struct task_cputime</span></td></tr></table></div></body></html>