summaryrefslogtreecommitdiff
path: root/static/freebsd/man3/makedev.3 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man3/makedev.3 3.html')
-rw-r--r--static/freebsd/man3/makedev.3 3.html88
1 files changed, 0 insertions, 88 deletions
diff --git a/static/freebsd/man3/makedev.3 3.html b/static/freebsd/man3/makedev.3 3.html
deleted file mode 100644
index ee9cb148..00000000
--- a/static/freebsd/man3/makedev.3 3.html
+++ /dev/null
@@ -1,88 +0,0 @@
-<table class="head">
- <tr>
- <td class="head-ltitle">MAKEDEV(3)</td>
- <td class="head-vol">Library Functions Manual</td>
- <td class="head-rtitle">MAKEDEV(3)</td>
- </tr>
-</table>
-<div class="manual-text">
-<section class="Sh">
-<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
-<p class="Pp"><code class="Nm">makedev</code>, <code class="Nm">major</code>,
- <code class="Nm">minor</code> &#x2014; <span class="Nd">device number
- conversion</span></p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
-<p class="Pp"><code class="In">#include
- &lt;<a class="In">sys/types.h</a>&gt;</code></p>
-<p class="Pp"><var class="Ft">dev_t</var>
- <br/>
- <code class="Fn">makedev</code>(<var class="Fa" style="white-space: nowrap;">int
- major</var>, <var class="Fa" style="white-space: nowrap;">int
- minor</var>);</p>
-<p class="Pp"><var class="Ft">int</var>
- <br/>
- <code class="Fn">major</code>(<var class="Fa" style="white-space: nowrap;">dev_t
- dev</var>);</p>
-<p class="Pp"><var class="Ft">int</var>
- <br/>
- <code class="Fn">minor</code>(<var class="Fa" style="white-space: nowrap;">dev_t
- dev</var>);</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
-<p class="Pp">The
- <a class="permalink" href="#makedev"><code class="Fn" id="makedev">makedev</code></a>()
- macro returns a device number created from the provided
- <var class="Fa">major</var> and <var class="Fa">minor</var> number. The
- <a class="permalink" href="#major"><code class="Fn" id="major">major</code></a>()
- and
- <a class="permalink" href="#minor"><code class="Fn" id="minor">minor</code></a>()
- macros return the original numbers from the device number
- <var class="Fa">dev</var>. In other words, for a value
- <var class="Va">dev</var> of the type <var class="Vt">dev_t</var>, and
- values <var class="Va">ma</var>, <var class="Va">mi</var> of the type
- <var class="Vt">int</var>, the assertions</p>
-<div class="Bd Bd-indent"><code class="Li">dev == makedev(major(dev),
- minor(dev))</code></div>
-<div class="Bd Bd-indent"><code class="Li">ma == major(makedev(ma,
- mi))</code></div>
-<div class="Bd Bd-indent"><code class="Li">mi == minor(makedev(ma,
- mi))</code></div>
-are valid.
-<p class="Pp">In previous implementations of <span class="Ux">FreeBSD</span> all
- block and character devices were uniquely identified by a pair of stable
- major and minor numbers. The major number referred to a certain device class
- (e.g. disks, TTYs) while the minor number identified an instance within the
- device class. Later versions of <span class="Ux">FreeBSD</span>
- automatically generate a unique device number for each character device
- visible in <span class="Pa">/dev/</span>. These numbers are not divided in
- device classes and are not guaranteed to be stable upon reboot or driver
- reload.</p>
-<p class="Pp">On <span class="Ux">FreeBSD</span> these macros are only used by
- utilities that need to exchange numbers with other operating systems that
- may use different encodings for <var class="Vt">dev_t</var>, but also
- applications that present these numbers to the user in a more conventional
- way.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
- VALUES</a></h1>
-<p class="Pp">The <code class="Fn">major</code>() and
- <code class="Fn">minor</code>() macros return numbers whose value can span
- the complete range of an <var class="Vt">int</var>.</p>
-</section>
-<section class="Sh">
-<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
- ALSO</a></h1>
-<p class="Pp"><a class="Xr">mknod(2)</a>, <a class="Xr">devname(3)</a>,
- <a class="Xr">devfs(4)</a></p>
-</section>
-</div>
-<table class="foot">
- <tr>
- <td class="foot-date">August 3, 2017</td>
- <td class="foot-os">FreeBSD 15.0</td>
- </tr>
-</table>