File: hwloc_component.3

package info (click to toggle)
hwloc 1.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 15,916 kB
  • ctags: 7,500
  • sloc: ansic: 34,194; sh: 12,810; xml: 8,466; makefile: 1,632; sed: 9; php: 8
file content (87 lines) | stat: -rw-r--r-- 2,436 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.TH "hwloc_component" 3 "Tue Oct 7 2014" "Version 1.10.0" "Hardware Locality (hwloc)" \" -*- nroff -*-
.ad l
.nh
.SH NAME
hwloc_component \- 
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <plugins\&.h>\fP
.SS "Data Fields"

.in +1c
.ti -1c
.RI "unsigned \fBabi\fP"
.br
.ti -1c
.RI "int(* \fBinit\fP )(unsigned long \fBflags\fP)"
.br
.ti -1c
.RI "void(* \fBfinalize\fP )(unsigned long \fBflags\fP)"
.br
.ti -1c
.RI "\fBhwloc_component_type_t\fP \fBtype\fP"
.br
.ti -1c
.RI "unsigned long \fBflags\fP"
.br
.ti -1c
.RI "void * \fBdata\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
Generic component structure\&. 

Generic components structure, either statically listed by configure in static-components\&.h or dynamically loaded as a plugin\&. 
.SH "Field Documentation"
.PP 
.SS "unsigned hwloc_component::abi"

.PP
Component ABI version, set to HWLOC_COMPONENT_ABI\&. 
.SS "void* hwloc_component::data"

.PP
Component data, pointing to a struct \fBhwloc_disc_component\fP or struct hwloc_xml_component\&. 
.SS "void(* hwloc_component::finalize)(unsigned long \fBflags\fP)"

.PP
Process-wide component termination callback\&. This optional callback is called after unregistering the component from the hwloc core (before unloading the plugin)\&.
.PP
\fCflags\fP is always 0 for now\&.
.PP
\fBNote:\fP
.RS 4
If the component uses ltdl for loading its own plugins, it should load/unload them only in \fBinit()\fP and \fBfinalize()\fP, to avoid race conditions with hwloc's use of ltdl\&. 
.RE
.PP

.SS "unsigned long hwloc_component::flags"

.PP
Component flags, unused for now\&. 
.SS "int(* hwloc_component::init)(unsigned long \fBflags\fP)"

.PP
Process-wide component initialization callback\&. This optional callback is called when the component is registered to the hwloc core (after loading the plugin)\&.
.PP
When the component is built as a plugin, this callback should call hwloc_check_plugin_namespace() and return an negative error code on error\&.
.PP
\fCflags\fP is always 0 for now\&.
.PP
\fBReturns:\fP
.RS 4
0 on success, or a negative code on error\&.
.RE
.PP
If the component uses ltdl for loading its own plugins, it should load/unload them only in \fBinit()\fP and \fBfinalize()\fP, to avoid race conditions with hwloc's use of ltdl\&. 
.SS "\fBhwloc_component_type_t\fP hwloc_component::type"

.PP
Component type\&. 

.SH "Author"
.PP 
Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code\&.