diff options
Diffstat (limited to 'include/linux/kernfs.h')
-rw-r--r-- | include/linux/kernfs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index e446ab97ee0c..2bf477f86eb1 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h | |||
@@ -371,6 +371,11 @@ __poll_t kernfs_generic_poll(struct kernfs_open_file *of, | |||
371 | struct poll_table_struct *pt); | 371 | struct poll_table_struct *pt); |
372 | void kernfs_notify(struct kernfs_node *kn); | 372 | void kernfs_notify(struct kernfs_node *kn); |
373 | 373 | ||
374 | int kernfs_xattr_get(struct kernfs_node *kn, const char *name, | ||
375 | void *value, size_t size); | ||
376 | int kernfs_xattr_set(struct kernfs_node *kn, const char *name, | ||
377 | const void *value, size_t size, int flags); | ||
378 | |||
374 | const void *kernfs_super_ns(struct super_block *sb); | 379 | const void *kernfs_super_ns(struct super_block *sb); |
375 | int kernfs_get_tree(struct fs_context *fc); | 380 | int kernfs_get_tree(struct fs_context *fc); |
376 | void kernfs_free_fs_context(struct fs_context *fc); | 381 | void kernfs_free_fs_context(struct fs_context *fc); |
@@ -473,6 +478,14 @@ static inline int kernfs_setattr(struct kernfs_node *kn, | |||
473 | 478 | ||
474 | static inline void kernfs_notify(struct kernfs_node *kn) { } | 479 | static inline void kernfs_notify(struct kernfs_node *kn) { } |
475 | 480 | ||
481 | static inline int kernfs_xattr_get(struct kernfs_node *kn, const char *name, | ||
482 | void *value, size_t size) | ||
483 | { return -ENOSYS; } | ||
484 | |||
485 | static inline int kernfs_xattr_set(struct kernfs_node *kn, const char *name, | ||
486 | const void *value, size_t size, int flags) | ||
487 | { return -ENOSYS; } | ||
488 | |||
476 | static inline const void *kernfs_super_ns(struct super_block *sb) | 489 | static inline const void *kernfs_super_ns(struct super_block *sb) |
477 | { return NULL; } | 490 | { return NULL; } |
478 | 491 | ||