| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 5 |
<title>UDisksLinuxDevice: UDisks Reference Manual</title> |
| 6 |
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot"> |
| 7 |
<link rel="home" href="index.html" title="UDisks Reference Manual"> |
| 8 |
<link rel="up" href="ref-daemon-linux-types.html" title="Linux-specific types"> |
| 9 |
<link rel="prev" href="UDisksLinuxProvider.html" title="UDisksLinuxProvider"> |
| 10 |
<link rel="next" href="ref-daemon-drives.html" title="Drives on Linux"> |
| 11 |
<meta name="generator" content="GTK-Doc V1.35.1 (XML mode)"> |
| 12 |
<link rel="stylesheet" href="style.css" type="text/css"> |
| 13 |
</head> |
| 14 |
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
| 15 |
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle"> |
| 16 |
<td width="100%" align="left" class="shortcuts"> |
| 17 |
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> |
| 18 |
<a href="#UDisksLinuxDevice.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> |
| 19 |
<a href="#UDisksLinuxDevice.object-hierarchy" class="shortcut">Object Hierarchy</a></span> |
| 20 |
</td> |
| 21 |
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> |
| 22 |
<td><a accesskey="u" href="ref-daemon-linux-types.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> |
| 23 |
<td><a accesskey="p" href="UDisksLinuxProvider.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> |
| 24 |
<td><a accesskey="n" href="ref-daemon-drives.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> |
| 25 |
</tr></table> |
| 26 |
<div class="refentry"> |
| 27 |
<a name="UDisksLinuxDevice"></a><div class="titlepage"></div> |
| 28 |
<div class="refnamediv"><table width="100%"><tr> |
| 29 |
<td valign="top"> |
| 30 |
<h2><span class="refentrytitle"><a name="UDisksLinuxDevice.top_of_page"></a>UDisksLinuxDevice</span></h2> |
| 31 |
<p>UDisksLinuxDevice — Low-level devices on Linux</p> |
| 32 |
</td> |
| 33 |
<td class="gallery_image" valign="top" align="right"></td> |
| 34 |
</tr></table></div> |
| 35 |
<div class="refsect1"> |
| 36 |
<a name="UDisksLinuxDevice.functions"></a><h2>Functions</h2> |
| 37 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 38 |
<colgroup> |
| 39 |
<col width="150px" class="functions_proto_type"> |
| 40 |
<col class="functions_proto_name"> |
| 41 |
</colgroup> |
| 42 |
<tbody> |
| 43 |
<tr> |
| 44 |
<td class="function_type"> |
| 45 |
<a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="returnvalue">UDisksLinuxDevice</span></a> * |
| 46 |
</td> |
| 47 |
<td class="function_name"> |
| 48 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-new-sync" title="udisks_linux_device_new_sync ()">udisks_linux_device_new_sync</a> <span class="c_punctuation">()</span> |
| 49 |
</td> |
| 50 |
</tr> |
| 51 |
<tr> |
| 52 |
<td class="function_type"> |
| 53 |
<span class="returnvalue">gboolean</span> |
| 54 |
</td> |
| 55 |
<td class="function_name"> |
| 56 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-reprobe-sync" title="udisks_linux_device_reprobe_sync ()">udisks_linux_device_reprobe_sync</a> <span class="c_punctuation">()</span> |
| 57 |
</td> |
| 58 |
</tr> |
| 59 |
<tr> |
| 60 |
<td class="function_type"> |
| 61 |
<span class="returnvalue">gchar</span> * |
| 62 |
</td> |
| 63 |
<td class="function_name"> |
| 64 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-read-sysfs-attr" title="udisks_linux_device_read_sysfs_attr ()">udisks_linux_device_read_sysfs_attr</a> <span class="c_punctuation">()</span> |
| 65 |
</td> |
| 66 |
</tr> |
| 67 |
<tr> |
| 68 |
<td class="function_type"> |
| 69 |
<span class="returnvalue">gint</span> |
| 70 |
</td> |
| 71 |
<td class="function_name"> |
| 72 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-read-sysfs-attr-as-int" title="udisks_linux_device_read_sysfs_attr_as_int ()">udisks_linux_device_read_sysfs_attr_as_int</a> <span class="c_punctuation">()</span> |
| 73 |
</td> |
| 74 |
</tr> |
| 75 |
<tr> |
| 76 |
<td class="function_type"> |
| 77 |
<span class="returnvalue">guint64</span> |
| 78 |
</td> |
| 79 |
<td class="function_name"> |
| 80 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-read-sysfs-attr-as-uint64" title="udisks_linux_device_read_sysfs_attr_as_uint64 ()">udisks_linux_device_read_sysfs_attr_as_uint64</a> <span class="c_punctuation">()</span> |
| 81 |
</td> |
| 82 |
</tr> |
| 83 |
<tr> |
| 84 |
<td class="function_type"> |
| 85 |
<span class="returnvalue">gboolean</span> |
| 86 |
</td> |
| 87 |
<td class="function_name"> |
| 88 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-is-ata" title="udisks_linux_device_is_ata ()">udisks_linux_device_is_ata</a> <span class="c_punctuation">()</span> |
| 89 |
</td> |
| 90 |
</tr> |
| 91 |
<tr> |
| 92 |
<td class="function_type"> |
| 93 |
<span class="returnvalue">gboolean</span> |
| 94 |
</td> |
| 95 |
<td class="function_name"> |
| 96 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-subsystem-is-nvme" title="udisks_linux_device_subsystem_is_nvme ()">udisks_linux_device_subsystem_is_nvme</a> <span class="c_punctuation">()</span> |
| 97 |
</td> |
| 98 |
</tr> |
| 99 |
<tr> |
| 100 |
<td class="function_type"> |
| 101 |
<span class="returnvalue">gboolean</span> |
| 102 |
</td> |
| 103 |
<td class="function_name"> |
| 104 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-nvme-is-fabrics" title="udisks_linux_device_nvme_is_fabrics ()">udisks_linux_device_nvme_is_fabrics</a> <span class="c_punctuation">()</span> |
| 105 |
</td> |
| 106 |
</tr> |
| 107 |
<tr> |
| 108 |
<td class="function_type"> |
| 109 |
<span class="returnvalue">gboolean</span> |
| 110 |
</td> |
| 111 |
<td class="function_name"> |
| 112 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-is-dm-multipath" title="udisks_linux_device_is_dm_multipath ()">udisks_linux_device_is_dm_multipath</a> <span class="c_punctuation">()</span> |
| 113 |
</td> |
| 114 |
</tr> |
| 115 |
<tr> |
| 116 |
<td class="function_type"> |
| 117 |
<span class="returnvalue">gboolean</span> |
| 118 |
</td> |
| 119 |
<td class="function_name"> |
| 120 |
<a class="link" href="UDisksLinuxDevice.html#udisks-linux-device-is-mpath-device-path" title="udisks_linux_device_is_mpath_device_path ()">udisks_linux_device_is_mpath_device_path</a> <span class="c_punctuation">()</span> |
| 121 |
</td> |
| 122 |
</tr> |
| 123 |
</tbody> |
| 124 |
</table></div> |
| 125 |
</div> |
| 126 |
<div class="refsect1"> |
| 127 |
<a name="UDisksLinuxDevice.other"></a><h2>Types and Values</h2> |
| 128 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 129 |
<colgroup> |
| 130 |
<col width="150px" class="other_proto_type"> |
| 131 |
<col class="other_proto_name"> |
| 132 |
</colgroup> |
| 133 |
<tbody><tr> |
| 134 |
<td class="datatype_keyword"> </td> |
| 135 |
<td class="function_name"><a class="link" href="UDisksLinuxDevice.html#UDisksLinuxDevice-struct" title="UDisksLinuxDevice">UDisksLinuxDevice</a></td> |
| 136 |
</tr></tbody> |
| 137 |
</table></div> |
| 138 |
</div> |
| 139 |
<div class="refsect1"> |
| 140 |
<a name="UDisksLinuxDevice.object-hierarchy"></a><h2>Object Hierarchy</h2> |
| 141 |
<pre class="screen"> GObject |
| 142 |
<span class="lineart">╰──</span> UDisksLinuxDevice |
| 143 |
</pre> |
| 144 |
</div> |
| 145 |
<div class="refsect1"> |
| 146 |
<a name="UDisksLinuxDevice.description"></a><h2>Description</h2> |
| 147 |
<p>Types and functions used to record information obtained from the |
| 148 |
udev database as well as by probing the device.</p> |
| 149 |
</div> |
| 150 |
<div class="refsect1"> |
| 151 |
<a name="UDisksLinuxDevice.functions_details"></a><h2>Functions</h2> |
| 152 |
<div class="refsect2"> |
| 153 |
<a name="udisks-linux-device-new-sync"></a><h3>udisks_linux_device_new_sync ()</h3> |
| 154 |
<pre class="programlisting"><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="returnvalue">UDisksLinuxDevice</span></a> * |
| 155 |
udisks_linux_device_new_sync (<em class="parameter"><code><a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevDevice.html#GUdevDevice-struct"><span class="type">GUdevDevice</span></a> *udev_device</code></em>, |
| 156 |
<em class="parameter"><code><a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevClient.html#GUdevClient-struct"><span class="type">GUdevClient</span></a> *udev_client</code></em>);</pre> |
| 157 |
<p>Creates a new <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> from <em class="parameter"><code>udev_device</code></em> |
| 158 |
which includes |
| 159 |
probing the device for more information, if applicable.</p> |
| 160 |
<p>The calling thread may be blocked for a non-trivial amount of time |
| 161 |
while the probing is underway.</p> |
| 162 |
<div class="refsect3"> |
| 163 |
<a name="udisks-linux-device-new-sync.parameters"></a><h4>Parameters</h4> |
| 164 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 165 |
<colgroup> |
| 166 |
<col width="150px" class="parameters_name"> |
| 167 |
<col class="parameters_description"> |
| 168 |
<col width="200px" class="parameters_annotations"> |
| 169 |
</colgroup> |
| 170 |
<tbody> |
| 171 |
<tr> |
| 172 |
<td class="parameter_name"><p>udev_device</p></td> |
| 173 |
<td class="parameter_description"><p>A <a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevDevice.html#GUdevDevice-struct"><span class="type">GUdevDevice</span></a>.</p></td> |
| 174 |
<td class="parameter_annotations"> </td> |
| 175 |
</tr> |
| 176 |
<tr> |
| 177 |
<td class="parameter_name"><p>udev_client</p></td> |
| 178 |
<td class="parameter_description"><p>A <a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevClient.html#GUdevClient-struct"><span class="type">GUdevClient</span></a>.</p></td> |
| 179 |
<td class="parameter_annotations"> </td> |
| 180 |
</tr> |
| 181 |
</tbody> |
| 182 |
</table></div> |
| 183 |
</div> |
| 184 |
<div class="refsect3"> |
| 185 |
<a name="udisks-linux-device-new-sync.returns"></a><h4>Returns</h4> |
| 186 |
<p> A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p> |
| 187 |
</div> |
| 188 |
</div> |
| 189 |
<hr> |
| 190 |
<div class="refsect2"> |
| 191 |
<a name="udisks-linux-device-reprobe-sync"></a><h3>udisks_linux_device_reprobe_sync ()</h3> |
| 192 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 193 |
udisks_linux_device_reprobe_sync (<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>, |
| 194 |
<em class="parameter"><code><a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevClient.html#GUdevClient-struct"><span class="type">GUdevClient</span></a> *udev_client</code></em>, |
| 195 |
<em class="parameter"><code><span class="type">GCancellable</span> *cancellable</code></em>, |
| 196 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 197 |
<p>Forcibly reprobe information on <em class="parameter"><code>device</code></em> |
| 198 |
. The calling thread may be |
| 199 |
blocked for a non-trivial amount of time while the probing is |
| 200 |
underway.</p> |
| 201 |
<p>Probing is dm-multipath aware in which case an active path |
| 202 |
is looked up and udev attributes are fetched from there.</p> |
| 203 |
<div class="refsect3"> |
| 204 |
<a name="udisks-linux-device-reprobe-sync.parameters"></a><h4>Parameters</h4> |
| 205 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 206 |
<colgroup> |
| 207 |
<col width="150px" class="parameters_name"> |
| 208 |
<col class="parameters_description"> |
| 209 |
<col width="200px" class="parameters_annotations"> |
| 210 |
</colgroup> |
| 211 |
<tbody> |
| 212 |
<tr> |
| 213 |
<td class="parameter_name"><p>device</p></td> |
| 214 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 215 |
<td class="parameter_annotations"> </td> |
| 216 |
</tr> |
| 217 |
<tr> |
| 218 |
<td class="parameter_name"><p>udev_client</p></td> |
| 219 |
<td class="parameter_description"><p>A <a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevClient.html#GUdevClient-struct"><span class="type">GUdevClient</span></a>.</p></td> |
| 220 |
<td class="parameter_annotations"> </td> |
| 221 |
</tr> |
| 222 |
<tr> |
| 223 |
<td class="parameter_name"><p>cancellable</p></td> |
| 224 |
<td class="parameter_description"><p>A <span class="type">GCancellable</span> or <code class="literal">NULL</code>. </p></td> |
| 225 |
<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> |
| 226 |
</tr> |
| 227 |
<tr> |
| 228 |
<td class="parameter_name"><p>error</p></td> |
| 229 |
<td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>.</p></td> |
| 230 |
<td class="parameter_annotations"> </td> |
| 231 |
</tr> |
| 232 |
</tbody> |
| 233 |
</table></div> |
| 234 |
</div> |
| 235 |
<div class="refsect3"> |
| 236 |
<a name="udisks-linux-device-reprobe-sync.returns"></a><h4>Returns</h4> |
| 237 |
<p> <code class="literal">TRUE</code> if reprobing succeeded, <code class="literal">FALSE</code> otherwise.</p> |
| 238 |
</div> |
| 239 |
</div> |
| 240 |
<hr> |
| 241 |
<div class="refsect2"> |
| 242 |
<a name="udisks-linux-device-read-sysfs-attr"></a><h3>udisks_linux_device_read_sysfs_attr ()</h3> |
| 243 |
<pre class="programlisting"><span class="returnvalue">gchar</span> * |
| 244 |
udisks_linux_device_read_sysfs_attr (<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>, |
| 245 |
<em class="parameter"><code>const <span class="type">gchar</span> *attr</code></em>, |
| 246 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 247 |
<p>Read a sysfs attribute within the device sysfs hierarchy. |
| 248 |
The <em class="parameter"><code>attr</code></em> |
| 249 |
can be a path relative to the <em class="parameter"><code>device</code></em> |
| 250 |
base sysfs path.</p> |
| 251 |
<div class="refsect3"> |
| 252 |
<a name="udisks-linux-device-read-sysfs-attr.parameters"></a><h4>Parameters</h4> |
| 253 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 254 |
<colgroup> |
| 255 |
<col width="150px" class="parameters_name"> |
| 256 |
<col class="parameters_description"> |
| 257 |
<col width="200px" class="parameters_annotations"> |
| 258 |
</colgroup> |
| 259 |
<tbody> |
| 260 |
<tr> |
| 261 |
<td class="parameter_name"><p>device</p></td> |
| 262 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 263 |
<td class="parameter_annotations"> </td> |
| 264 |
</tr> |
| 265 |
<tr> |
| 266 |
<td class="parameter_name"><p>attr</p></td> |
| 267 |
<td class="parameter_description"><p>Attribute name (a path).</p></td> |
| 268 |
<td class="parameter_annotations"> </td> |
| 269 |
</tr> |
| 270 |
<tr> |
| 271 |
<td class="parameter_name"><p>error</p></td> |
| 272 |
<td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>.</p></td> |
| 273 |
<td class="parameter_annotations"> </td> |
| 274 |
</tr> |
| 275 |
</tbody> |
| 276 |
</table></div> |
| 277 |
</div> |
| 278 |
<div class="refsect3"> |
| 279 |
<a name="udisks-linux-device-read-sysfs-attr.returns"></a><h4>Returns</h4> |
| 280 |
<p>Attribute contents or <code class="literal">NULL</code> if unavailable. Free with <code class="function">g_free()</code>. </p> |
| 281 |
<p><span class="annotation">[<acronym title="The caller owns the data, and is responsible for free it."><span class="acronym">transfer full</span></acronym>]</span></p> |
| 282 |
</div> |
| 283 |
</div> |
| 284 |
<hr> |
| 285 |
<div class="refsect2"> |
| 286 |
<a name="udisks-linux-device-read-sysfs-attr-as-int"></a><h3>udisks_linux_device_read_sysfs_attr_as_int ()</h3> |
| 287 |
<pre class="programlisting"><span class="returnvalue">gint</span> |
| 288 |
udisks_linux_device_read_sysfs_attr_as_int |
| 289 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>, |
| 290 |
<em class="parameter"><code>const <span class="type">gchar</span> *attr</code></em>, |
| 291 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 292 |
<p>Read a sysfs attribute within the device sysfs hierarchy. |
| 293 |
The <em class="parameter"><code>attr</code></em> |
| 294 |
can be a path relative to the <em class="parameter"><code>device</code></em> |
| 295 |
base sysfs path.</p> |
| 296 |
<div class="refsect3"> |
| 297 |
<a name="udisks-linux-device-read-sysfs-attr-as-int.parameters"></a><h4>Parameters</h4> |
| 298 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 299 |
<colgroup> |
| 300 |
<col width="150px" class="parameters_name"> |
| 301 |
<col class="parameters_description"> |
| 302 |
<col width="200px" class="parameters_annotations"> |
| 303 |
</colgroup> |
| 304 |
<tbody> |
| 305 |
<tr> |
| 306 |
<td class="parameter_name"><p>device</p></td> |
| 307 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 308 |
<td class="parameter_annotations"> </td> |
| 309 |
</tr> |
| 310 |
<tr> |
| 311 |
<td class="parameter_name"><p>attr</p></td> |
| 312 |
<td class="parameter_description"><p>Attribute name (a path).</p></td> |
| 313 |
<td class="parameter_annotations"> </td> |
| 314 |
</tr> |
| 315 |
<tr> |
| 316 |
<td class="parameter_name"><p>error</p></td> |
| 317 |
<td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>.</p></td> |
| 318 |
<td class="parameter_annotations"> </td> |
| 319 |
</tr> |
| 320 |
</tbody> |
| 321 |
</table></div> |
| 322 |
</div> |
| 323 |
<div class="refsect3"> |
| 324 |
<a name="udisks-linux-device-read-sysfs-attr-as-int.returns"></a><h4>Returns</h4> |
| 325 |
<p> Numerical attribute value or 0 on error.</p> |
| 326 |
</div> |
| 327 |
</div> |
| 328 |
<hr> |
| 329 |
<div class="refsect2"> |
| 330 |
<a name="udisks-linux-device-read-sysfs-attr-as-uint64"></a><h3>udisks_linux_device_read_sysfs_attr_as_uint64 ()</h3> |
| 331 |
<pre class="programlisting"><span class="returnvalue">guint64</span> |
| 332 |
udisks_linux_device_read_sysfs_attr_as_uint64 |
| 333 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>, |
| 334 |
<em class="parameter"><code>const <span class="type">gchar</span> *attr</code></em>, |
| 335 |
<em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre> |
| 336 |
<p>Read a sysfs attribute within the device sysfs hierarchy. |
| 337 |
The <em class="parameter"><code>attr</code></em> |
| 338 |
can be a path relative to the <em class="parameter"><code>device</code></em> |
| 339 |
base sysfs path.</p> |
| 340 |
<div class="refsect3"> |
| 341 |
<a name="udisks-linux-device-read-sysfs-attr-as-uint64.parameters"></a><h4>Parameters</h4> |
| 342 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 343 |
<colgroup> |
| 344 |
<col width="150px" class="parameters_name"> |
| 345 |
<col class="parameters_description"> |
| 346 |
<col width="200px" class="parameters_annotations"> |
| 347 |
</colgroup> |
| 348 |
<tbody> |
| 349 |
<tr> |
| 350 |
<td class="parameter_name"><p>device</p></td> |
| 351 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 352 |
<td class="parameter_annotations"> </td> |
| 353 |
</tr> |
| 354 |
<tr> |
| 355 |
<td class="parameter_name"><p>attr</p></td> |
| 356 |
<td class="parameter_description"><p>Attribute name (a path).</p></td> |
| 357 |
<td class="parameter_annotations"> </td> |
| 358 |
</tr> |
| 359 |
<tr> |
| 360 |
<td class="parameter_name"><p>error</p></td> |
| 361 |
<td class="parameter_description"><p>Return location for error or <code class="literal">NULL</code>.</p></td> |
| 362 |
<td class="parameter_annotations"> </td> |
| 363 |
</tr> |
| 364 |
</tbody> |
| 365 |
</table></div> |
| 366 |
</div> |
| 367 |
<div class="refsect3"> |
| 368 |
<a name="udisks-linux-device-read-sysfs-attr-as-uint64.returns"></a><h4>Returns</h4> |
| 369 |
<p> Numerical attribute value or 0 on error.</p> |
| 370 |
</div> |
| 371 |
</div> |
| 372 |
<hr> |
| 373 |
<div class="refsect2"> |
| 374 |
<a name="udisks-linux-device-is-ata"></a><h3>udisks_linux_device_is_ata ()</h3> |
| 375 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 376 |
udisks_linux_device_is_ata (<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>);</pre> |
| 377 |
<p>Checks that the <em class="parameter"><code>device</code></em> |
| 378 |
is a locally-attached ATA drive. Typically |
| 379 |
excludes USB connected devices that still do identify as ATA.</p> |
| 380 |
<div class="refsect3"> |
| 381 |
<a name="udisks-linux-device-is-ata.parameters"></a><h4>Parameters</h4> |
| 382 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 383 |
<colgroup> |
| 384 |
<col width="150px" class="parameters_name"> |
| 385 |
<col class="parameters_description"> |
| 386 |
<col width="200px" class="parameters_annotations"> |
| 387 |
</colgroup> |
| 388 |
<tbody><tr> |
| 389 |
<td class="parameter_name"><p>device</p></td> |
| 390 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 391 |
<td class="parameter_annotations"> </td> |
| 392 |
</tr></tbody> |
| 393 |
</table></div> |
| 394 |
</div> |
| 395 |
<div class="refsect3"> |
| 396 |
<a name="udisks-linux-device-is-ata.returns"></a><h4>Returns</h4> |
| 397 |
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>device</code></em> |
| 398 |
is ATA, <code class="literal">FALSE</code> otherwise.</p> |
| 399 |
</div> |
| 400 |
</div> |
| 401 |
<hr> |
| 402 |
<div class="refsect2"> |
| 403 |
<a name="udisks-linux-device-subsystem-is-nvme"></a><h3>udisks_linux_device_subsystem_is_nvme ()</h3> |
| 404 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 405 |
udisks_linux_device_subsystem_is_nvme (<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>);</pre> |
| 406 |
<p>Walks up the device hierarchy and checks if <em class="parameter"><code>device</code></em> |
| 407 |
is part of a NVMe topology.</p> |
| 408 |
<div class="refsect3"> |
| 409 |
<a name="udisks-linux-device-subsystem-is-nvme.parameters"></a><h4>Parameters</h4> |
| 410 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 411 |
<colgroup> |
| 412 |
<col width="150px" class="parameters_name"> |
| 413 |
<col class="parameters_description"> |
| 414 |
<col width="200px" class="parameters_annotations"> |
| 415 |
</colgroup> |
| 416 |
<tbody><tr> |
| 417 |
<td class="parameter_name"><p>device</p></td> |
| 418 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 419 |
<td class="parameter_annotations"> </td> |
| 420 |
</tr></tbody> |
| 421 |
</table></div> |
| 422 |
</div> |
| 423 |
<div class="refsect3"> |
| 424 |
<a name="udisks-linux-device-subsystem-is-nvme.returns"></a><h4>Returns</h4> |
| 425 |
<p> <code class="literal">TRUE</code> in case of a NVMe device, <code class="literal">FALSE</code> otherwise.</p> |
| 426 |
</div> |
| 427 |
</div> |
| 428 |
<hr> |
| 429 |
<div class="refsect2"> |
| 430 |
<a name="udisks-linux-device-nvme-is-fabrics"></a><h3>udisks_linux_device_nvme_is_fabrics ()</h3> |
| 431 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 432 |
udisks_linux_device_nvme_is_fabrics (<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>);</pre> |
| 433 |
<p>Determines whether <em class="parameter"><code>device</code></em> |
| 434 |
is a NVMe over Fabrics device.</p> |
| 435 |
<div class="refsect3"> |
| 436 |
<a name="udisks-linux-device-nvme-is-fabrics.parameters"></a><h4>Parameters</h4> |
| 437 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 438 |
<colgroup> |
| 439 |
<col width="150px" class="parameters_name"> |
| 440 |
<col class="parameters_description"> |
| 441 |
<col width="200px" class="parameters_annotations"> |
| 442 |
</colgroup> |
| 443 |
<tbody><tr> |
| 444 |
<td class="parameter_name"><p>device</p></td> |
| 445 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 446 |
<td class="parameter_annotations"> </td> |
| 447 |
</tr></tbody> |
| 448 |
</table></div> |
| 449 |
</div> |
| 450 |
<div class="refsect3"> |
| 451 |
<a name="udisks-linux-device-nvme-is-fabrics.returns"></a><h4>Returns</h4> |
| 452 |
<p> <code class="literal">TRUE</code> in case of a NVMeoF device, <code class="literal">FALSE</code> otherwise.</p> |
| 453 |
</div> |
| 454 |
</div> |
| 455 |
<hr> |
| 456 |
<div class="refsect2"> |
| 457 |
<a name="udisks-linux-device-is-dm-multipath"></a><h3>udisks_linux_device_is_dm_multipath ()</h3> |
| 458 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 459 |
udisks_linux_device_is_dm_multipath (<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>);</pre> |
| 460 |
<div class="refsect3"> |
| 461 |
<a name="udisks-linux-device-is-dm-multipath.parameters"></a><h4>Parameters</h4> |
| 462 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 463 |
<colgroup> |
| 464 |
<col width="150px" class="parameters_name"> |
| 465 |
<col class="parameters_description"> |
| 466 |
<col width="200px" class="parameters_annotations"> |
| 467 |
</colgroup> |
| 468 |
<tbody><tr> |
| 469 |
<td class="parameter_name"><p>device</p></td> |
| 470 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 471 |
<td class="parameter_annotations"> </td> |
| 472 |
</tr></tbody> |
| 473 |
</table></div> |
| 474 |
</div> |
| 475 |
<div class="refsect3"> |
| 476 |
<a name="udisks-linux-device-is-dm-multipath.returns"></a><h4>Returns</h4> |
| 477 |
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>device</code></em> |
| 478 |
represents a dm-multipath block device, |
| 479 |
<code class="literal">FALSE</code> otherwise.</p> |
| 480 |
</div> |
| 481 |
</div> |
| 482 |
<hr> |
| 483 |
<div class="refsect2"> |
| 484 |
<a name="udisks-linux-device-is-mpath-device-path"></a><h3>udisks_linux_device_is_mpath_device_path ()</h3> |
| 485 |
<pre class="programlisting"><span class="returnvalue">gboolean</span> |
| 486 |
udisks_linux_device_is_mpath_device_path |
| 487 |
(<em class="parameter"><code><a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a> *device</code></em>);</pre> |
| 488 |
<div class="refsect3"> |
| 489 |
<a name="udisks-linux-device-is-mpath-device-path.parameters"></a><h4>Parameters</h4> |
| 490 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 491 |
<colgroup> |
| 492 |
<col width="150px" class="parameters_name"> |
| 493 |
<col class="parameters_description"> |
| 494 |
<col width="200px" class="parameters_annotations"> |
| 495 |
</colgroup> |
| 496 |
<tbody><tr> |
| 497 |
<td class="parameter_name"><p>device</p></td> |
| 498 |
<td class="parameter_description"><p>A <a class="link" href="UDisksLinuxDevice.html" title="UDisksLinuxDevice"><span class="type">UDisksLinuxDevice</span></a>.</p></td> |
| 499 |
<td class="parameter_annotations"> </td> |
| 500 |
</tr></tbody> |
| 501 |
</table></div> |
| 502 |
</div> |
| 503 |
<div class="refsect3"> |
| 504 |
<a name="udisks-linux-device-is-mpath-device-path.returns"></a><h4>Returns</h4> |
| 505 |
<p> <code class="literal">TRUE</code> if <em class="parameter"><code>device</code></em> |
| 506 |
is an I/O path that is part of a dm-multipath |
| 507 |
device, <code class="literal">FALSE</code> otherwise.</p> |
| 508 |
</div> |
| 509 |
</div> |
| 510 |
</div> |
| 511 |
<div class="refsect1"> |
| 512 |
<a name="UDisksLinuxDevice.other_details"></a><h2>Types and Values</h2> |
| 513 |
<div class="refsect2"> |
| 514 |
<a name="UDisksLinuxDevice-struct"></a><h3>UDisksLinuxDevice</h3> |
| 515 |
<pre class="programlisting">typedef struct { |
| 516 |
GUdevDevice *udev_device; |
| 517 |
guchar *ata_identify_device_data; |
| 518 |
guchar *ata_identify_packet_device_data; |
| 519 |
BDNVMEControllerInfo *nvme_ctrl_info; |
| 520 |
BDNVMENamespaceInfo *nvme_ns_info; |
| 521 |
} UDisksLinuxDevice; |
| 522 |
</pre> |
| 523 |
<p>Object containing information about a device on Linux. This is |
| 524 |
essentially an instance of <a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevDevice.html#GUdevDevice-struct"><span class="type">GUdevDevice</span></a> plus additional data - such |
| 525 |
as ATA IDENTIFY data - obtained via probing the device at discovery |
| 526 |
and uevent "change" time.</p> |
| 527 |
<div class="refsect3"> |
| 528 |
<a name="UDisksLinuxDevice.members"></a><h4>Members</h4> |
| 529 |
<div class="informaltable"><table class="informaltable" width="100%" border="0"> |
| 530 |
<colgroup> |
| 531 |
<col width="300px" class="struct_members_name"> |
| 532 |
<col class="struct_members_description"> |
| 533 |
<col width="200px" class="struct_members_annotations"> |
| 534 |
</colgroup> |
| 535 |
<tbody> |
| 536 |
<tr> |
| 537 |
<td class="struct_member_name"><p><a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevDevice.html#GUdevDevice-struct"><span class="type">GUdevDevice</span></a> *<em class="structfield"><code><a name="UDisksLinuxDevice-struct.udev-device"></a>udev_device</code></em>;</p></td> |
| 538 |
<td class="struct_member_description"><p>A <a href="https://gnome.pages.gitlab.gnome.org/libgudev/libgudev/GUdevDevice.html#GUdevDevice-struct"><span class="type">GUdevDevice</span></a>.</p></td> |
| 539 |
<td class="struct_member_annotations"> </td> |
| 540 |
</tr> |
| 541 |
<tr> |
| 542 |
<td class="struct_member_name"><p><span class="type">guchar</span> *<em class="structfield"><code><a name="UDisksLinuxDevice-struct.ata-identify-device-data"></a>ata_identify_device_data</code></em>;</p></td> |
| 543 |
<td class="struct_member_description"><p>512-byte array containing the result of the IDENTIFY DEVICE command or <code class="literal">NULL</code>.</p></td> |
| 544 |
<td class="struct_member_annotations"> </td> |
| 545 |
</tr> |
| 546 |
<tr> |
| 547 |
<td class="struct_member_name"><p><span class="type">guchar</span> *<em class="structfield"><code><a name="UDisksLinuxDevice-struct.ata-identify-packet-device-data"></a>ata_identify_packet_device_data</code></em>;</p></td> |
| 548 |
<td class="struct_member_description"><p>512-byte array containing the result of the IDENTIFY PACKET DEVICE command or <code class="literal">NULL</code>.</p></td> |
| 549 |
<td class="struct_member_annotations"> </td> |
| 550 |
</tr> |
| 551 |
<tr> |
| 552 |
<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/libblockdev/libblockdev-NVMe.html#BDNVMEControllerInfo"><span class="type">BDNVMEControllerInfo</span></a> *<em class="structfield"><code><a name="UDisksLinuxDevice-struct.nvme-ctrl-info"></a>nvme_ctrl_info</code></em>;</p></td> |
| 553 |
<td class="struct_member_description"><p>A <a href="/usr/share/gtk-doc/html/libblockdev/libblockdev-NVMe.html#BDNVMEControllerInfo"><span class="type">BDNVMEControllerInfo</span></a> data in case of a NVMe Controller.</p></td> |
| 554 |
<td class="struct_member_annotations"> </td> |
| 555 |
</tr> |
| 556 |
<tr> |
| 557 |
<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/libblockdev/libblockdev-NVMe.html#BDNVMENamespaceInfo"><span class="type">BDNVMENamespaceInfo</span></a> *<em class="structfield"><code><a name="UDisksLinuxDevice-struct.nvme-ns-info"></a>nvme_ns_info</code></em>;</p></td> |
| 558 |
<td class="struct_member_description"><p>A <a href="/usr/share/gtk-doc/html/libblockdev/libblockdev-NVMe.html#BDNVMENamespaceInfo"><span class="type">BDNVMENamespaceInfo</span></a> data in case of a NVMe Namespace.</p></td> |
| 559 |
<td class="struct_member_annotations"> </td> |
| 560 |
</tr> |
| 561 |
</tbody> |
| 562 |
</table></div> |
| 563 |
</div> |
| 564 |
</div> |
| 565 |
</div> |
| 566 |
</div> |
| 567 |
<div class="footer"> |
| 568 |
<hr>Generated by GTK-Doc V1.35.1</div> |
| 569 |
</body> |
| 570 |
</html> |