^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright 2020 Google LLC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #ifndef _INCFS_PSEUDO_FILES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #define _INCFS_PSEUDO_FILES_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #include "internal.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define PSEUDO_FILE_COUNT 3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) #define INCFS_START_INO_RANGE 10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) extern const struct mem_range incfs_pseudo_file_names[PSEUDO_FILE_COUNT];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) extern const unsigned long incfs_pseudo_file_inodes[PSEUDO_FILE_COUNT];
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) int dir_lookup_pseudo_files(struct super_block *sb, struct dentry *dentry);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) int emit_pseudo_files(struct dir_context *ctx);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #endif