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_LAST :
25 The last component of the layout.
27 .BR LLAPI_LAYOUT_COMP_USE_NEXT :
28 The next component after the current one.
30 .BR LLAPI_LAYOUT_COMP_USE_PREV :
31 The previous component before the current one.
33 Return 0 on success, and 1 when there is no next or previous component.
34 Otherwise, if an error occurred -1 is returned and
40 An invalid argument was specified.
43 No such component ID exists.
45 .BR llapi_layout_alloc (3),
46 .BR llapi_layout_file_open (3),
47 .BR llapi_layout_comp_del (3),
48 .BR llapi_layout_comp_use_id (3),