/kernel/liteos_a/fs/vfs/operation/ |
H A D | fullpath.c | 181 static char *vfs_not_absolute_path(const char *directory, const char *filename, char **pathname, int namelen) in vfs_not_absolute_path() argument 192 fullpath = (char *)malloc(strlen(directory) + namelen + 2); in vfs_not_absolute_path() 201 ret = snprintf_s(fullpath, strlen(directory) + namelen + 2, strlen(directory) + namelen + 1, in vfs_not_absolute_path() 202 "%s/%s", directory, filename); in vfs_not_absolute_path() 213 static char *vfs_normalize_fullpath(const char *directory, const char *filename, char **pathname, int namelen) in vfs_normalize_fullpath() argument 220 fullpath = vfs_not_absolute_path(directory, filename, pathname, namelen); in vfs_normalize_fullpath() 244 int vfs_normalize_path(const char *directory, const char *filename, char **pathname) in vfs_normalize_path() argument 251 BOOL dir_flags = (directory == NULL) ? TRUE : FALSE; in vfs_normalize_path() 260 if (directory in vfs_normalize_path() [all...] |
/kernel/liteos_m/components/shell/src/cmds/ |
H A D | fullpath.c | 170 STATIC CHAR *VfsNotAbsolutePath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT32 namelen) in VfsNotAbsolutePath() argument 181 fullpath = (CHAR *)malloc(strlen(directory) + namelen + 2); /* 2, size of "./" */ in VfsNotAbsolutePath() 189 ret = snprintf_s(fullpath, strlen(directory) + namelen + 2, strlen(directory) + namelen + 1, in VfsNotAbsolutePath() 190 "%s/%s", directory, filename); in VfsNotAbsolutePath() 201 STATIC CHAR *VfsNormalizeFullpath(const CHAR *directory, const CHAR *filename, CHAR **pathname, INT32 namelen) in VfsNormalizeFullpath() argument 208 fullpath = VfsNotAbsolutePath(directory, filename, pathname, namelen); in VfsNormalizeFullpath() 232 INT32 VfsNormalizePath(const CHAR *directory, const CHAR *filename, CHAR **pathname) in VfsNormalizePath() argument 242 if ((directory == NULL) && (filename[0] != '/')) { in VfsNormalizePath() 249 if ((filename[0] != '/') && (strlen(directory) in VfsNormalizePath() [all...] |
/kernel/linux/linux-6.6/scripts/clang-tools/ |
H A D | gen_compile_commands.py | 24 # The tools/ directory adopts a different build system, and produces .cmd 33 directory: The work directory where the objects were built. 41 directory_help = ('specify the output directory used for the kernel build ' 42 '(defaults to the working directory)') 43 parser.add_argument('-d', '--directory', type=str, default='.', 61 'If nothing is specified, the current directory is searched') 67 os.path.abspath(args.directory), 70 args.paths if len(args.paths) > 0 else [args.directory]) 73 def cmdfiles_in_dir(directory) [all...] |
/kernel/linux/linux-5.10/scripts/clang-tools/ |
H A D | gen_compile_commands.py | 31 directory: The work directory where the objects were built. 39 directory_help = ('specify the output directory used for the kernel build ' 40 '(defaults to the working directory)') 41 parser.add_argument('-d', '--directory', type=str, default='.', 59 'If nothing is specified, the current directory is searched') 65 os.path.abspath(args.directory), 68 args.paths if len(args.paths) > 0 else [args.directory]) 71 def cmdfiles_in_dir(directory): 72 """Generate the iterator of .cmd files found under the directory [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | eprom.c | 233 * Calculate the max number of table entries that will fit within a directory 291 * directory is a u32 aligned buffer of size EP_PAGE_SIZE. 294 void *directory, void **data, u32 *size) in read_segment_platform_config() 306 /* the footer is at the end of the directory */ in read_segment_platform_config() 308 (directory + EP_PAGE_SIZE - sizeof(*footer)); in read_segment_platform_config() 326 /* the file table fits into the directory buffer handed in */ in read_segment_platform_config() 328 (directory + EP_PAGE_SIZE - directory_size); in read_segment_platform_config() 395 * at or within the directory. in read_segment_platform_config() 464 u32 directory[EP_PAGE_DWORDS]; /* aligned buffer */ in eprom_read_platform_config() local 475 ret = read_length(dd, SEG_SIZE - EP_PAGE_SIZE, EP_PAGE_SIZE, directory); in eprom_read_platform_config() 293 read_segment_platform_config(struct hfi1_devdata *dd, void *directory, void **data, u32 *size) read_segment_platform_config() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | eprom.c | 192 * Calculate the max number of table entries that will fit within a directory 250 * directory is a u32 aligned buffer of size EP_PAGE_SIZE. 253 void *directory, void **data, u32 *size) in read_segment_platform_config() 265 /* the footer is at the end of the directory */ in read_segment_platform_config() 267 (directory + EP_PAGE_SIZE - sizeof(*footer)); in read_segment_platform_config() 285 /* the file table fits into the directory buffer handed in */ in read_segment_platform_config() 287 (directory + EP_PAGE_SIZE - directory_size); in read_segment_platform_config() 354 * at or within the directory. in read_segment_platform_config() 423 u32 directory[EP_PAGE_DWORDS]; /* aligned buffer */ in eprom_read_platform_config() local 434 ret = read_length(dd, SEG_SIZE - EP_PAGE_SIZE, EP_PAGE_SIZE, directory); in eprom_read_platform_config() 252 read_segment_platform_config(struct hfi1_devdata *dd, void *directory, void **data, u32 *size) read_segment_platform_config() argument [all...] |
/kernel/linux/linux-6.6/tools/perf/ |
H A D | Makefile | 35 # Only pass canonical directory names as the output directory: 59 @$(MAKE) -f Makefile.perf --no-print-directory -j$(JOBS) O=$(FULL_O) $(SET_DEBUG) $@ 103 @$(MAKE) SHUF=1 -f tests/make REUSE_FEATURES_DUMP=1 MK=Makefile SET_PARALLEL=1 --no-print-directory tarpkg make_static make_with_gtk2 out 106 @$(MAKE) -f tests/make REUSE_FEATURES_DUMP=1 MK=Makefile SET_PARALLEL=1 --no-print-directory out
|
/kernel/linux/linux-5.10/drivers/mtd/parsers/ |
H A D | redboot.c | 36 static int directory = CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK; variable 37 module_param(directory, int, 0); 67 * directory block pointer. in parse_redboot_of() 69 directory = dirblock; in parse_redboot_of() 94 if ( directory < 0 ) { in parse_redboot_partitions() 95 offset = master->size + directory * master->erasesize; in parse_redboot_partitions() 105 offset = directory * master->erasesize; in parse_redboot_partitions() 133 if (!memcmp(buf[i].name, "FIS directory", 14)) { in parse_redboot_partitions() 134 /* This is apparently the FIS directory entry for the in parse_redboot_partitions() 135 * FIS directory itsel in parse_redboot_partitions() [all...] |
/kernel/linux/linux-6.6/drivers/mtd/parsers/ |
H A D | redboot.c | 36 static int directory = CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK; variable 37 module_param(directory, int, 0); 67 * directory block pointer. in parse_redboot_of() 69 directory = dirblock; in parse_redboot_of() 94 if (directory < 0) { in parse_redboot_partitions() 95 offset = master->size + directory * master->erasesize; in parse_redboot_partitions() 105 offset = directory * master->erasesize; in parse_redboot_partitions() 133 if (!memcmp(buf[i].name, "FIS directory", 14)) { in parse_redboot_partitions() 134 /* This is apparently the FIS directory entry for the in parse_redboot_partitions() 135 * FIS directory itsel in parse_redboot_partitions() [all...] |
/kernel/linux/linux-5.10/arch/um/os-Linux/ |
H A D | umid.c | 77 * Doesn't handle directory trees, so it's not like rm -rf, but almost such. We 83 DIR *directory; in remove_files_and_dir() local 89 directory = opendir(dir); in remove_files_and_dir() 90 if (directory == NULL) { in remove_files_and_dir() 97 while ((ent = readdir(directory)) != NULL) { in remove_files_and_dir() 120 closedir(directory); in remove_files_and_dir() 125 * This says that there isn't already a user of the specified directory even if 127 * happen, the directory is unusable by the pre-existing UML, so we might as 129 * the existing UML somehow corrupting its umid directory 130 * something other than UML sticking stuff in the directory [all...] |
/kernel/linux/linux-6.6/arch/um/os-Linux/ |
H A D | umid.c | 77 * Doesn't handle directory trees, so it's not like rm -rf, but almost such. We 83 DIR *directory; in remove_files_and_dir() local 89 directory = opendir(dir); in remove_files_and_dir() 90 if (directory == NULL) { in remove_files_and_dir() 97 while ((ent = readdir(directory)) != NULL) { in remove_files_and_dir() 120 closedir(directory); in remove_files_and_dir() 125 * This says that there isn't already a user of the specified directory even if 127 * happen, the directory is unusable by the pre-existing UML, so we might as 129 * the existing UML somehow corrupting its umid directory 130 * something other than UML sticking stuff in the directory [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/rcutorture/bin/ |
H A D | kvm-remote.sh | 18 echo $scriptname must be run from top-level directory of kernel source tree. 53 echo Results directory: $rundir 76 oldrun="`grep -m 1 "^Results directory: " $T/kvm.sh.out | awk '{ print $3 }'`" 117 echo Remote run directory: $rundir | tee -a "$oldrun/remote-log" 118 echo Local build-side run directory: $oldrun | tee -a "$oldrun/remote-log" 120 # Create the kvm-remote-N.sh scripts in the bin directory.
|
H A D | kvm-again.sh | 20 echo $scriptname must be run from top-level directory of kernel source tree. 173 echo ---- Re-run results directory: $rundir 175 # Copy old run directory tree over and adjust. 217 echo ---- Dryrun complete, directory: $rundir | tee -a "$rundir/log"
|
/kernel/linux/linux-5.10/drivers/xen/ |
H A D | xen-front-pgdir-shbuf.c | 4 * Xen frontend/backend page directory based shared buffer 53 * e.g. if grefs are required for page directory only or the buffer 58 /* Fill page directory according to para-virtual display protocol. */ 74 * page directory. Usually this is passed to the backend, 78 * \param buf shared buffer which page directory is of interest. 80 * page directory. 150 kfree(buf->directory); in xen_front_pgdir_shbuf_free() 163 * Get the number of pages the page directory consumes itself. 180 /* Only for pages the page directory consumes itself. */ in backend_calc_num_grefs() 193 * Number of pages the page directory consume in guest_calc_num_grefs() [all...] |
/kernel/linux/linux-6.6/drivers/xen/ |
H A D | xen-front-pgdir-shbuf.c | 4 * Xen frontend/backend page directory based shared buffer 45 * e.g. if grefs are required for page directory only or the buffer 50 /* Fill page directory according to para-virtual display protocol. */ 66 * page directory. Usually this is passed to the backend, 70 * \param buf shared buffer which page directory is of interest. 72 * page directory. 141 kfree(buf->directory); in xen_front_pgdir_shbuf_free() 154 * Get the number of pages the page directory consumes itself. 171 /* Only for pages the page directory consumes itself. */ in backend_calc_num_grefs() 184 * Number of pages the page directory consume in guest_calc_num_grefs() [all...] |
/kernel/linux/linux-5.10/scripts/ |
H A D | patch-kernel | 5 # The source directory defaults to /usr/src/linux, and the patch 6 # directory defaults to the current directory. 9 # Update the kernel tree in the current directory using patches in the 10 # directory above to the latest Linus kernel 23 # It then looks for patches for the next sublevel in the patch directory. 24 # This is applied using "patch -p1 -s" from within the kernel directory. 72 source directory defaults to /usr/src/linux, 73 patch directory defaults to the current directory, [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | patch-kernel | 5 # The source directory defaults to /usr/src/linux, and the patch 6 # directory defaults to the current directory. 9 # Update the kernel tree in the current directory using patches in the 10 # directory above to the latest Linus kernel 23 # It then looks for patches for the next sublevel in the patch directory. 24 # This is applied using "patch -p1 -s" from within the kernel directory. 72 source directory defaults to /usr/src/linux, 73 patch directory defaults to the current directory, [all...] |
/kernel/linux/linux-5.10/tools/perf/ |
H A D | Makefile | 35 # Only pass canonical directory names as the output directory: 59 @$(MAKE) -f Makefile.perf --no-print-directory -j$(JOBS) O=$(FULL_O) $(SET_DEBUG) $@ 103 @$(MAKE) SHUF=1 -f tests/make REUSE_FEATURES_DUMP=1 MK=Makefile SET_PARALLEL=1 --no-print-directory tarpkg out
|
/kernel/linux/linux-5.10/drivers/firewire/ |
H A D | core-device.c | 50 static const u32 *search_leaf(const u32 *directory, int search_key) in search_leaf() argument 55 fw_csr_iterator_init(&ci, directory); in search_leaf() 98 * @directory: e.g. root directory or unit directory 99 * @key: the key of the preceding directory entry 109 int fw_csr_string(const u32 *directory, int key, char *buf, size_t size) in fw_csr_string() argument 111 const u32 *leaf = search_leaf(directory, key); in fw_csr_string() 119 static void get_ids(const u32 *directory, int *id) in get_ids() argument 124 fw_csr_iterator_init(&ci, directory); in get_ids() 420 units_sprintf(char *buf, const u32 *directory) units_sprintf() argument [all...] |
/kernel/linux/linux-6.6/drivers/firewire/ |
H A D | core-device.c | 50 static const u32 *search_leaf(const u32 *directory, int search_key) in search_leaf() argument 55 fw_csr_iterator_init(&ci, directory); in search_leaf() 98 * @directory: e.g. root directory or unit directory 99 * @key: the key of the preceding directory entry 109 int fw_csr_string(const u32 *directory, int key, char *buf, size_t size) in fw_csr_string() argument 111 const u32 *leaf = search_leaf(directory, key); in fw_csr_string() 119 static void get_ids(const u32 *directory, int *id) in get_ids() argument 124 fw_csr_iterator_init(&ci, directory); in get_ids() 418 units_sprintf(char *buf, const u32 *directory) units_sprintf() argument [all...] |
/kernel/linux/linux-5.10/usr/ |
H A D | gen_initramfs.sh | 9 # This script assumes that gen_init_cpio is located in usr/ directory 22 directory. "squash" forces all files to uid 0. 25 directory. "squash" forces all files to gid 0. 26 <cpio_source> File list or directory for cpio archive. 145 # process one directory (incl sub-directories) 152 # If $dirlist is only one line, then the directory is empty 181 # If a directory is specified then add all files in it to fs
|
/kernel/linux/linux-6.6/usr/ |
H A D | gen_initramfs.sh | 9 # This script assumes that gen_init_cpio is located in usr/ directory 22 directory. "squash" forces all files to uid 0. 25 directory. "squash" forces all files to gid 0. 27 <cpio_source> File list or directory for cpio archive. 146 # process one directory (incl sub-directories) 153 # If $dirlist is only one line, then the directory is empty 182 # If a directory is specified then add all files in it to fs
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | nubus.h | 47 /* Root directory (does *not* always equal fblock + doffset!) */ 48 unsigned char *directory; member 51 /* Offset to root directory (sometimes) */ 77 /* Functional directory */ 78 unsigned char *directory; member 135 /* The root directory which contains the board and functional 139 /* The board directory */ 142 /* The functional directory */ 145 /* These work on any directory gotten via the above */ 153 /* Things to do with directory entrie [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | nubus.h | 47 /* Root directory (does *not* always equal fblock + doffset!) */ 48 unsigned char *directory; member 51 /* Offset to root directory (sometimes) */ 77 /* Functional directory */ 78 unsigned char *directory; member 136 /* The root directory which contains the board and functional 140 /* The board directory */ 143 /* The functional directory */ 146 /* These work on any directory gotten via the above */ 154 /* Things to do with directory entrie [all...] |
/kernel/linux/linux-5.10/drivers/nubus/ |
H A D | nubus.c | 222 dir->ptr = dir->base = board->directory; in nubus_get_root_dir() 232 dir->ptr = dir->base = fres->directory; in nubus_get_func_dir() 244 dir->ptr = dir->base = board->directory; in nubus_get_board_dir() 248 /* Now dereference it (the first directory is always the board in nubus_get_board_dir() 249 directory) */ in nubus_get_board_dir() 396 pr_debug(" gamma directory offset: 0x%06x\n", ent->data); in nubus_get_display_resource() 506 fres->directory = dir.base; in nubus_get_functional_resource() 539 pr_debug(" driver directory offset: 0x%06x\n", in nubus_get_functional_resource() 698 pr_debug(" vidnames directory offset: 0x%06x\n", in nubus_get_board_resource() 704 pr_debug(" video mode parameter directory offse in nubus_get_board_resource() [all...] |