Whamcloud - gitweb
LU-8307 ldlm: cond_resched in ldlm_bl_thread_main
[fs/lustre-release.git] / lustre / doc / llapi_layout_comp_id_get.3
1 .TH llapi_layout_comp_id_get 3 "2015 Nov 4" "Lustre User API"
2 .SH NAME
3 llapi_layout_comp_id_get  \- get the ID of a layout component.
4 .SH SYNOPSIS
5 .nf
6 .B #include <lustre/lustreapi.h>
7 .PP
8 .BI "int llapi_layout_comp_id_get(const struct llapi_layout *" layout ",
9 .BI "                             uint32_t *" id );
10 .fi
11 .SH DESCRIPTION
12 .PP
13 Return the unique numeric
14 .I id
15 of the current component of
16 .IR layout .
17 .PP
18 .SH RETURN VALUES
19 Return 0 on success, or -1 if an error occurred (in which case, errno is
20 set appropriately).
21 .SH ERRORS
22 .TP 15
23 .SM EINVAL
24 An invalid argument was specified.
25 .SH "SEE ALSO"
26 .BR llapi_layout_alloc (3),
27 .BR llapi_layout_file_open (3),
28 .BR llapi_layout (7),
29 .BR lustreapi (7)