Go to the documentation of this file.
5 #include <linux/linkage.h>
38 #define LOOKUP_FOLLOW 0x0001
39 #define LOOKUP_DIRECTORY 0x0002
40 #define LOOKUP_AUTOMOUNT 0x0004
42 #define LOOKUP_PARENT 0x0010
43 #define LOOKUP_REVAL 0x0020
44 #define LOOKUP_RCU 0x0040
49 #define LOOKUP_OPEN 0x0100
50 #define LOOKUP_CREATE 0x0200
51 #define LOOKUP_EXCL 0x0400
52 #define LOOKUP_RENAME_TARGET 0x0800
54 #define LOOKUP_JUMPED 0x1000
55 #define LOOKUP_ROOT 0x2000
56 #define LOOKUP_EMPTY 0x4000
61 #define user_path(name, path) user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW, path)
62 #define user_lpath(name, path) user_path_at(AT_FDCWD, name, 0, path)
63 #define user_path_dir(name, path) \
64 user_path_at(AT_FDCWD, name, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, path)
73 const char *,
unsigned int,
struct path *);
86 static inline void nd_set_link(
struct nameidata *nd,
char *
path)
91 static inline char *nd_get_link(
struct nameidata *nd)
96 static inline void nd_terminate_link(
void *
name,
size_t len,
size_t maxlen)
98 ((
char *) name)[
min(len, maxlen)] =
'\0';