1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>panic_nand_wait</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="MTD NAND Driver Programming Interface"><link rel="up" href="intfunctions.html" title="Chapter 11. Internal Functions Provided"><link rel="prev" href="API-nand-get-device.html" title="nand_get_device"><link rel="next" href="API-nand-wait.html" title="nand_wait"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">panic_nand_wait</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-nand-get-device.html">Prev</a> </td><th width="60%" align="center">Chapter 11. Internal Functions Provided</th><td width="20%" align="right"> <a accesskey="n" href="API-nand-wait.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-panic-nand-wait"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>panic_nand_wait — 2 [GENERIC] wait until the command is done 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="funcsynopsis"><table border="0" class="funcprototype-table" summary="Function synopsis" style="cellspacing: 0; cellpadding: 0;"><tr><td><code class="funcdef">void <b class="fsfunc">panic_nand_wait </b>(</code></td><td>struct mtd_info * <var class="pdparam">mtd</var>, </td></tr><tr><td> </td><td>struct nand_chip * <var class="pdparam">chip</var>, </td></tr><tr><td> </td><td>unsigned long <var class="pdparam">timeo</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1103035108"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>mtd</code></em></span></dt><dd><p> 4 MTD device structure 5 </p></dd><dt><span class="term"><em class="parameter"><code>chip</code></em></span></dt><dd><p> 6 NAND chip structure 7 </p></dd><dt><span class="term"><em class="parameter"><code>timeo</code></em></span></dt><dd><p> 8 timeout 9 </p></dd></dl></div></div><div class="refsect1"><a name="idp1103038620"></a><h2>Description</h2><p> 10 Wait for command done. This is a helper function for nand_wait used when 11 we are in interrupt context. May happen when in panic and trying to write 12 an oops through mtdoops. 13</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-nand-get-device.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="intfunctions.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-nand-wait.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">nand_get_device</span> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">nand_wait</span></td></tr></table></div></body></html> 14