1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>bioset_create</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Filesystems API"><link rel="up" href="other_functions.html" title="Other Functions"><link rel="prev" href="API-bio-trim.html" title="bio_trim"><link rel="next" href="API-bioset-create-nobvec.html" title="bioset_create_nobvec"></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">bioset_create</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="API-bio-trim.html">Prev</a> </td><th width="60%" align="center">Other Functions</th><td width="20%" align="right"> <a accesskey="n" href="API-bioset-create-nobvec.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-bioset-create"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>bioset_create — 2 Create a bio_set 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">struct bio_set * <b class="fsfunc">bioset_create </b>(</code></td><td>unsigned int <var class="pdparam">pool_size</var>, </td></tr><tr><td> </td><td>unsigned int <var class="pdparam">front_pad</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1"><a name="idp1102544276"></a><h2>Arguments</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="parameter"><code>pool_size</code></em></span></dt><dd><p> 4 Number of bio and bio_vecs to cache in the mempool 5 </p></dd><dt><span class="term"><em class="parameter"><code>front_pad</code></em></span></dt><dd><p> 6 Number of bytes to allocate in front of the returned bio 7 </p></dd></dl></div></div><div class="refsect1"><a name="idp1102546980"></a><h2>Description</h2><p> 8 Set up a bio_set to be used with <em class="parameter"><code>bio_alloc_bioset</code></em>. Allows the caller 9 to ask for a number of bytes to be allocated in front of the bio. 10 Front pad allocation is useful for embedding the bio inside 11 another structure, to avoid allocating extra data to go with the bio. 12 Note that the bio must be embedded at the END of that structure always, 13 or things will break badly. 14</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="API-bio-trim.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="other_functions.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-bioset-create-nobvec.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top"><span class="phrase">bio_trim</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">bioset_create_nobvec</span></td></tr></table></div></body></html> 15