1 .TH llapi_layout_comp_use 3 "2017 Apr 7" "Lustre User API"
3 llapi_layout_comp_use \- change current component to relative position
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_layout_comp_use(struct llapi_layout *" layout ",
9 .BI " enum llapi_layout_comp_use *" pos );
13 Changes the currently active component of
15 to the relative position given by
21 .BR LLAPI_LAYOUT_COMP_USE_FIRST :
22 The first component of the layout.
24 .BR LLAPI_LAYOUT_COMP_USE_NEXT :
25 The next component after the current one.
27 .BR LLAPI_LAYOUT_COMP_USE_LAST :
28 The last component of the layout.
30 Return 0 on success, and 1 when there is no next component. Otherwise,
31 if an error occurred -1 is returned and
37 An invalid argument was specified.
40 No such component ID exists.
42 .BR llapi_layout_alloc (3),
43 .BR llapi_layout_file_open (3),
44 .BR llapi_layout_comp_del (3),
45 .BR llapi_layout_comp_use_id (3),