aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/input/sparse-keymap.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-05-09 22:33:54 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-05-09 22:33:54 -0400
commit693d92a1bbc9e42681c42ed190bd42b636ca876f (patch)
treef611cbb3ae94b19263f8b25a0caa0c272c89d73d /include/linux/input/sparse-keymap.h
parent42c36f63ac1366ab0ecc2d5717821362c259f517 (diff)
Linux 2.6.39-rc7
Diffstat (limited to 'include/linux/input/sparse-keymap.h')
0 files changed, 0 insertions, 0 deletions
class="hl opt">, const char *, struct path *, unsigned int); extern struct dentry *user_path_create(int, const char __user *, struct path *, unsigned int); extern void done_path_create(struct path *, struct dentry *); extern struct dentry *kern_path_locked(const char *, struct path *); extern int vfs_path_lookup(struct dentry *, struct vfsmount *, const char *, unsigned int, struct path *); extern struct dentry *lookup_one_len(const char *, struct dentry *, int); extern int follow_down_one(struct path *); extern int follow_down(struct path *); extern int follow_up(struct path *); extern struct dentry *lock_rename(struct dentry *, struct dentry *); extern void unlock_rename(struct dentry *, struct dentry *); extern void nd_jump_link(struct nameidata *nd, struct path *path); static inline void nd_set_link(struct nameidata *nd, char *path) { nd->saved_names[nd->depth] = path; } static inline char *nd_get_link(struct nameidata *nd) { return nd->saved_names[nd->depth]; } static inline void nd_terminate_link(void *name, size_t len, size_t maxlen) { ((char *) name)[min(len, maxlen)] = '\0'; } /** * retry_estale - determine whether the caller should retry an operation * @error: the error that would currently be returned * @flags: flags being used for next lookup attempt * * Check to see if the error code was -ESTALE, and then determine whether * to retry the call based on whether "flags" already has LOOKUP_REVAL set. * * Returns true if the caller should try the operation again. */ static inline bool retry_estale(const long error, const unsigned int flags) { return error == -ESTALE && !(flags & LOOKUP_REVAL); } #endif /* _LINUX_NAMEI_H */