Sophie

Sophie

distrib > Mandriva > 9.0 > i586 > by-pkgid > 98e91bc877e03cf3582cd163550eb7e3 > files > 113

kernel-doc-html-2.4.19-16mdk.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML
><HEAD
><TITLE
>pm_send_all</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="The Linux Kernel API"
HREF="book1.html"><LINK
REL="UP"
TITLE="Power Management"
HREF="c11281.html"><LINK
REL="PREVIOUS"
TITLE="pm_send"
HREF="r11377.html"><LINK
REL="NEXT"
TITLE="pm_find"
HREF="r11466.html"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>The Linux Kernel API</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="r11377.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="r11466.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="AEN11425"
></A
><SPAN
CLASS="phrase"
><SPAN
CLASS="PHRASE"
>pm_send_all</SPAN
></SPAN
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN11429"
></A
><H2
>Name</H2
>pm_send_all&nbsp;--&nbsp;      send request to all managed devices
 </DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN11432"
></A
><H2
>Synopsis</H2
><DIV
CLASS="FUNCSYNOPSIS"
><A
NAME="AEN11434"
></A
><P
></P
><P
><CODE
><CODE
CLASS="FUNCDEF"
>int <TT
CLASS="FUNCTION"
>pm_send_all </TT
></CODE
>(pm_request_t <TT
CLASS="PARAMETER"
><I
>rqst</I
></TT
>, void * <TT
CLASS="PARAMETER"
><I
>data</I
></TT
>);</CODE
></P
><P
></P
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN11442"
></A
><H2
>Arguments</H2
><P
></P
><DIV
CLASS="VARIABLELIST"
><DL
><DT
><TT
CLASS="PARAMETER"
><I
>rqst</I
></TT
></DT
><DD
><P
>      power management request
    </P
></DD
><DT
><TT
CLASS="PARAMETER"
><I
>data</I
></TT
></DT
><DD
><P
>      data for the callback
    </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN11455"
></A
><H2
>Description</H2
><P
>   Issue a power management request to a all devices. The 
   <TT
CLASS="CONSTANT"
>PM_SUSPEND</TT
> events are handled specially. Any device is 
   permitted to fail a suspend by returning a non zero (error)
   value from its callback function. If any device vetoes a 
   suspend request then all other devices that have suspended 
   during the processing of this request are restored to their
   previous state.
 </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN11459"
></A
><H2
>WARNING</H2
><P
>     This function takes the pm_devs_lock. The lock is not dropped until
   the callbacks have completed. This prevents races against pm locking
   functions, races against module unload pm_unregister code. It does
   mean however that you must not issue pm_ functions within the callback
   or you will deadlock and users will hate you.
   </P
><P
>&#13;   Zero is returned on success. If a suspend fails then the status
   from the device that vetoes the suspend is returned.
 </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN11463"
></A
><H2
>BUGS</H2
><P
>    what stops two power management requests occuring in parallel
   and conflicting.
 </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="r11377.html"
ACCESSKEY="P"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="r11466.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><SPAN
CLASS="phrase"
><SPAN
CLASS="PHRASE"
>pm_send</SPAN
></SPAN
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c11281.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><SPAN
CLASS="phrase"
><SPAN
CLASS="PHRASE"
>pm_find</SPAN
></SPAN
></TD
></TR
></TABLE
></DIV
></BODY
></HTML
>