he lesser of old and new sizes.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ptr</td><td>Pointer to memory allocated by kmalloc/kcalloc/krealloc. </td></tr>
    <tr><td class="paramname">new_size</td><td>New size in bytes. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Pointer to reallocated memory, or NULL if resizing fails. </dd></dl>

</div>
</div>
<a id="a48ed44cd60d7dd25dc396e20739a3a84"></a>
<h2 class="memtitl