<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>UbixOS: fs/common/gpt.c File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">UbixOS
 <span id="projectnumber">2.0</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('../../',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('d5/d7b/gpt_8c.html','../../');});
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">gpt.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <<a class="el" href="../../d5/d82/gpt_8h_source.html">fs/common/gpt.h</a>></code><br />
<code>#include <<a class="el" href="../../dc/d24/crc32_8h_source.html">fs/common/crc32.h</a>></code><br />
<code>#include <<a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html">sys/device.h</a>></code><br />
<code>#include <<a class="el" href="../../da/d28/kprintf_8h_source.html">lib/kprintf.h</a>></code><br />
<code>#include <<a class="el" href="../../de/d44/hd_8h_source.html">pci/hd.h</a>></code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for gpt.c:</div>
<div class="dyncontent">
<div class="center"><img src="../../de/d7c/gpt_8c__incl.png" border="0" usemap="#fs_2common_2gpt_8c" alt=""/></div>
<map name="fs_2common_2gpt_8c" id="fs_2common_2gpt_8c">
<area shape="rect" title=" " alt="" coords="335,5,454,32"/>
<area shape="rect" href="../../d5/d82/gpt_8h.html" title=" " alt="" coords="122,752,241,779"/>
<area shape="rect" href="../../d4/d7e/include_2sys_2device_8h.html" title=" " alt="" coords="259,901,354,928"/>
<area shape="rect" href="../../dc/d24/crc32_8h.html" title=" " alt="" coords="328,80,461,107"/>
<area shape="rect" href="../../da/d28/kprintf_8h.html" title=" " alt="" coords="2353,901,2439,928"/>
<area shape="rect" href="../../de/d44/hd_8h.html" title=" " alt="" coords="486,80,554,107"/>
<area shape="rect" href="../../dd/d1d/uuid_8h.html" title=" " alt="" coords="5,901,88,928"/>
<area shape="rect" href="../../da/d66/string_8h.html" title=" " alt="" coords="137,827,202,853"/>
<area shape="rect" href="../../d6/d92/cdefs_8h.html" title=" " alt="" coords="457,1125,546,1152"/>
<area shape="rect" href="../../d0/d27/include_2sys_2types_8h.html" title=" " alt="" coords="1084,976,1175,1003"/>
<area shape="rect" href="../../d0/d6f/__types_8h.html" title=" " alt="" coords="1018,1200,1115,1227"/>
<area shape="rect" href="../../d9/dab/select_8h.html" title=" " alt="" coords="904,1051,997,1077"/>
<area shape="rect" href="../../d6/d30/__timespec_8h.html" title=" " alt="" coords="939,1125,1058,1152"/>
<area shape="rect" href="../../df/dc5/__timeval_8h.html" title=" " alt="" coords="1082,1125,1187,1152"/>
<area shape="rect" href="../../d6/da4/__sigset_8h.html" title=" " alt="" coords="763,1125,863,1152"/>
<area shape="rect" href="../../d6/d90/strings_8h.html" title=" " alt="" coords="112,901,184,928"/>
<area shape="rect" href="../../d1/d2d/stdarg_8h.html" title=" " alt="" coords="2361,976,2431,1003"/>
<area shape="rect" href="../../d9/d32/include_2ubixfs_2ubixfs_8h.html" title=" " alt="" coords="453,155,558,181"/>
<area shape="rect" href="../../db/da9/include_2vfs_2vfs_8h.html" title=" " alt="" coords="936,229,1003,256"/>
<area shape="rect" href="../../d1/de9/dirCache_8h.html" title=" " alt="" coords="429,752,552,779"/>
<area shape="rect" href="../../d1/dd8/mpi_8h.html" title=" " alt="" coords="1806,528,1885,555"/>
<area shape="rect" href="../../d6/db4/include_2vfs_2file_8h.html" title=" " alt="" coords="899,677,967,704"/>
<area shape="rect" href="../../db/dd5/thread_8h.html" title=" " alt="" coords="1182,752,1277,779"/>
<area shape="rect" href="../../d1/df2/wait_8h.html" title=" " alt="" coords="531,827,629,853"/>
<area shape="rect" href="../../d2/d29/mount_8h.html" title=" " alt="" coords="961,752,1049,779"/>
<area shape="rect" href="../../d3/d7e/sysproto__posix_8h.html" title=" " alt="" coords="1044,603,1191,629"/>
<area shape="rect" href="../../d7/d97/net_8h.html" title=" " alt="" coords="1339,304,1413,331"/>
<area shape="rect" href="../../d3/d73/inode_8h.html" title=" " alt="" coords="827,752,909,779"/>
<area shape="rect" href="../../df/d42/ufs_8h.html" title=" " alt="" coords="654,827,725,853"/>
<area shape="rect" href="../../d7/d0b/trap_8h.html" title=" " alt="" coords="1192,827,1272,853"/>
<area shape="rect" href="../../df/d92/sys_2signal_8h.html" title=" " alt="" coords="1297,827,1389,853"/>
<area shape="rect" href="../../d8/d01/resource_8h.html" title=" " alt="" coords="1454,1051,1562,1077"/>
<area shape="rect" href="../../d6/d35/i386_2cpu_8h.html" title=" " alt="" coords="1192,901,1275,928"/>
<area shape="rect" href="../../d1/d7d/pipe__fs_8h.html" title=" " alt="" coords="851,827,939,853"/>
<area shape="rect" href="../../d8/dff/msdos__fs_8h.html" title=" " alt="" coords="963,827,1066,853"/>
<area shape="rect" href="../../d9/d69/netif_8h.html" title=" " alt="" coords="1651,379,1730,405"/>
<area shape="rect" href="../../dc/dba/opt_8h.html" title=" " alt="" coords="1783,677,1857,704"/>
<area shape="rect" href="../../d6/d40/err_8h.html" title=" " alt="" coords="1755,603,1826,629"/>
<area shape="rect" href="../../de/df7/ip__addr_8h.html" title=" " alt="" coords="1963,453,2061,480"/>
<area shape="rect" href="../../d4/da4/def_8h.html" title=" " alt="" coords="2103,603,2175,629"/>
<area shape="rect" href="../../d0/d35/pbuf_8h.html" title=" " alt="" coords="1651,528,1730,555"/>
<area shape="rect" href="../../d9/d9b/stats_8h.html" title=" " alt="" coords="1491,453,1575,480"/>
<area shape="rect" href="../../d2/d78/lwipopts_8h.html" title=" " alt="" coords="1647,752,1750,779"/>
<area shape="rect" href="../../db/d16/debug_8h.html" title=" " alt="" coords="1775,752,1865,779"/>
<area shape="rect" href="../../d2/d2d/arch_8h.html" title=" " alt="" coords="1836,827,1916,853"/>
<area shape="rect" href="../../d1/da8/ip4__addr_8h.html" title=" " alt="" coords="1960,528,2064,555"/>
<area shape="rect" href="../../d3/d7d/ip6__addr_8h.html" title=" " alt="" coords="2088,528,2192,555"/>
<area shape="rect" href="../../d7/d00/sched_8h.html" title=" " alt="" coords="1414,603,1525,629"/>
<area shape="rect" href="../../dd/d71/tty_8h.html" title=" " alt="" coords="1515,677,1605,704"/>
<area shape="rect" href="../../de/d9a/tss_8h.html" title=" " alt="" coords="1630,677,1706,704"/>
</map>
</div>
</div>
<p><a href="../../d5/d7b/gpt_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a9d6b29d1d0774d7ddc74723eafc3cb24"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d7b/gpt_8c.html#a9d6b29d1d0774d7ddc74723eafc3cb24">BOOTPROG</a>   "Unknown"</td></tr>
<tr class="separator:a9d6b29d1d0774d7ddc74723eafc3cb24"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95b65761111b3977fdd2512c3c6c4fc7"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d7b/gpt_8c.html#a95b65761111b3977fdd2512c3c6c4fc7">MAXTBLENTS</a>   128</td></tr>
<tr class="separator:a95b65761111b3977fdd2512c3c6c4fc7"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a5653b9fc16d888d9ebcc76f33850ffab"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d7b/gpt_8c.html#a5653b9fc16d888d9ebcc76f33850ffab">gptbootfailed</a> (struct <a class="el" href="../../dc/de2/structdevice__interface.html">device_interface</a> *devInfo)</td></tr>
<tr class="separator:a5653b9fc16d888d9ebcc76f33850ffab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a08130ab1aa44989d74341a21057b62c9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d7b/gpt_8c.html#a08130ab1aa44989d74341a21057b62c9">gptfind</a> (<a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../dd/d1d/uuid_8h.html#a86c80a9bcc352795ec12e8312d089c79">uuid_t</a> *<a class="el" href="../../d4/d06/structuuid.html">uuid</a>, struct <a class="el" href="../../dc/de2/structdevice__interface.html">device_interface</a> *devInfo, int part)</td></tr>
<tr class="separator:a08130ab1aa44989d74341a21057b62c9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a70a0e368efe25cb0dacb3fb445466da2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d5/d7b/gpt_8c.html#a70a0e368efe25cb0dacb3fb445466da2">gptread</a> (<a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../dd/d1d/uuid_8h.html#a86c80a9bcc352795ec12e8312d089c79">uuid_t</a> *<a class="el" href="../../d4/d06/structuuid.html">uuid</a>, struct <a class="el" href="../../dc/de2/structdevice__interface.html">device_interface</a> *devInfo, char *<a class="el" href="../../d9/dd0/structbuf.html">buf</a>)</td></tr>
<tr class="separator:a70a0e368efe25cb0dacb3fb445466da2"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a9d6b29d1d0774d7ddc74723eafc3cb24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d6b29d1d0774d7ddc74723eafc3cb24">◆ </a></span>BOOTPROG</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define BOOTPROG   "Unknown"</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="../../d5/d7b/gpt_8c_source.html#l00052">52</a> of file <a class="el" href="../../d5/d7b/gpt_8c_source.html">gpt.c</a>.</p>
</div>
</div>
<a id="a95b65761111b3977fdd2512c3c6c4fc7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95b65761111b3977fdd2512c3c6c4fc7">◆ </a></span>MAXTBLENTS</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define MAXTBLENTS   128</td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="../../d5/d7b/gpt_8c_source.html#l00049">49</a> of file <a class="el" href="../../d5/d7b/gpt_8c_source.html">gpt.c</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a5653b9fc16d888d9ebcc76f33850ffab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5653b9fc16d888d9ebcc76f33850ffab">◆ </a></span>gptbootfailed()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void gptbootfailed </td>
<td>(</td>
<td class="paramtype">struct <a class="el" href="../../dc/de2/structdevice__interface.html">device_interface</a> * </td>
<td class="paramname"><em>devInfo</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="../../d5/d7b/gpt_8c_source.html#l00216">216</a> of file <a class="el" href="../../d5/d7b/gpt_8c_source.html">gpt.c</a>.</p>
</div>
</div>
<a id="a08130ab1aa44989d74341a21057b62c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08130ab1aa44989d74341a21057b62c9">◆ </a></span>gptfind()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int gptfind </td>
<td>(</td>
<td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../dd/d1d/uuid_8h.html#a86c80a9bcc352795ec12e8312d089c79">uuid_t</a> * </td>
<td class="paramname"><em>uuid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="../../dc/de2/structdevice__interface.html">device_interface</a> * </td>
<td class="paramname"><em>devInfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>part</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="../../d5/d7b/gpt_8c_source.html#l00099">99</a> of file <a class="el" href="../../d5/d7b/gpt_8c_source.html">gpt.c</a>.</p>
<p class="reference">References <a class="el" href="../../d4/d7e/include_2sys_2device_8h_source.html#l00051">device_interface::info</a>, and <a class="el" href="../../de/d44/hd_8h_source.html#l00180">driveInfo::part</a>.</p>
</div>
</div>
<a id="a70a0e368efe25cb0dacb3fb445466da2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70a0e368efe25cb0dacb3fb445466da2">◆ </a></span>gptread()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int gptread </td>
<td>(</td>
<td class="paramtype"><a class="el" href="../../d6/d92/cdefs_8h.html#a2c212835823e3c54a8ab6d95c652660e">const</a> <a class="el" href="../../dd/d1d/uuid_8h.html#a86c80a9bcc352795ec12e8312d089c79">uuid_t</a> * </td>
<td class="paramname"><em>uuid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="../../dc/de2/structdevice__interface.html">device_interface</a> * </td>
<td class="paramname"><em>devInfo</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char * </td>
<td class="paramname"><em>buf</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p class="definition">Definition at line <a class="el" href="../../d5/d7b/gpt_8c_source.html#l00305">305</a> of file <a class="el" href="../../d5/d7b/gpt_8c_source.html">gpt.c</a>.</p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="../../dir_97b3d2b63ac216821c2d7a22ee0ab2b0.html">fs</a></li><li class="navelem"><a class="el" href="../../dir_93b1ddfc8a6a5a5d1dcc08ce5f8b1b70.html">common</a></li><li class="navelem"><a class="el" href="../../d5/d7b/gpt_8c.html">gpt.c</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
</ul>
</div>
</body>
</html>