<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Dne 12. 09. 22 v 7:55 Pra.. Dew..
napsal(a):<br>
</div>
<blockquote type="cite"
cite="mid:BY5PR14MB3893D6625238AD41746A53C786449@BY5PR14MB3893.namprd14.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}code
{mso-style-priority:99;
font-family:"Courier New";}span.hljs-keyword
{mso-style-name:hljs-keyword;}span.hljs-title
{mso-style-name:hljs-title;}.MsoChpDefault
{mso-style-type:export-only;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal">I see that in <a
href="https://gitlab.com/cryptsetup/cryptsetup/-/blob/master/lib/libdevmapper.c#L266"
moz-do-not-send="true">
libdevmapper.c</a> following line is defined</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span class="hljs-keyword">struct</span><code><span
style="font-size:10.0pt">
</span></code><span class="hljs-title"><span
style="font-size:10.0pt;font-family:"Courier
New"">dm_task</span></span><code><span
style="font-size:10.0pt"> *</span></code><span
class="hljs-title"><span
style="font-size:10.0pt;font-family:"Courier
New"">dmt</span></span><code><span
style="font-size:10.0pt">;<o:p></o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt"><o:p> </o:p></span></code></p>
<p class="MsoNormal"><code><span style="font-size:10.0pt">I
cannot seem to find out where is dm_task and associated
functions are actually defined? I do not see them in the
libdevmapper library headers and .c files. Thank you for
all the guidance.</span></code></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</blockquote>
<br>
<p>Hi</p>
<p><br>
</p>
<p>This structure is private to libdevmapper only usage. Access to
struct members is provided only via public functions.</p>
<p>You can always look at source files -
libdm/ioctl/libdm-targets.h - but as mentioned earlier - forget
about using a copy of this struct in your tools - there is only
public access - as the structure content may freely change between
release of libdevmapper - which would have made you binary
incompatible.</p>
<p><br>
</p>
<p>Regards</p>
<p><br>
</p>
<p>Zdenek</p>
<p><br>
</p>
</body>
</html>