Whamcloud - gitweb
LU-12610 llite: remove OBD_ -> CFS_ macros
[fs/lustre-release.git] / lustre / doc / llapi_root_path_open.3
1 .TH llapi_root_path_open 3 "2023 Apr 21" "Lustre User API"
2 .SH NAME
3 llapi_root_path_open \- Return open fd for a given device/path provided
4 .SH SYNOPSIS
5 .nf
6 .B #include <lustre/lustreapi.h>
7
8 .sp
9 .BI "int llapi_root_path_open(char *"device ", int *" fd " );
10
11 .sp
12 .fi
13 .SH DESCRIPTION
14 .LP
15 .B llapi_root_path_open(\|)
16 is called with
17 .I device
18 which points to the FSNAME or complet path. On success
19 .I fd
20 is populated with valid descriptor.
21
22 .SH RETURN VALUES
23 .LP
24 .B llapi_root_path_open(\|)
25 return:
26 .TP
27 >=0
28 on success.
29 .TP
30 <0
31 on failure.
32 .fi
33 .SH "SEE ALSO"
34 .BR lustreapi (7)