Home
last modified time | relevance | path

Searched refs:path_buf (Results 1 - 11 of 11) sorted by relevance

/kernel/linux/linux-6.6/tools/perf/util/
H A Dpath.c24 char *mkpath(char *path_buf, size_t sz, const char *fmt, ...) in mkpath() argument
30 len = vsnprintf(path_buf, sz, fmt, args); in mkpath()
33 strncpy(path_buf, "/bad-path/", sz); in mkpath()
34 return cleanup_path(path_buf); in mkpath()
H A Dcache.h29 char *mkpath(char *path_buf, size_t sz, const char *fmt, ...) __printf(3, 4);
/kernel/linux/common_modules/code_sign/
H A Dcode_sign_elf.c222 char *path_buf = kzalloc(PATH_MAX, GFP_KERNEL); in elf_file_enable_fs_verity() local
223 if (!path_buf) { in elf_file_enable_fs_verity()
224 code_sign_log_error("alloc mem for path_buf failed"); in elf_file_enable_fs_verity()
228 char *real_path = file_path(file, path_buf, PATH_MAX - 1); in elf_file_enable_fs_verity()
303 kfree(path_buf); in elf_file_enable_fs_verity()
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dinode_merge.c935 char *path_buf = kmalloc(PATH_MAX, GFP_KERNEL); in hmdfs_create_lower_dentry() local
941 if (unlikely(!path_buf || !absolute_path_buf)) { in hmdfs_create_lower_dentry()
946 path_name = dentry_path_raw(lo_d_parent, path_buf, PATH_MAX); in hmdfs_create_lower_dentry()
989 kfree(path_buf); in hmdfs_create_lower_dentry()
1250 char *path_buf = kmalloc(PATH_MAX, GFP_KERNEL); in do_rename_merge() local
1260 if (unlikely(!path_buf || !abs_path_buf)) { in do_rename_merge()
1277 path_name = dentry_path_raw(lo_d_new_dir, path_buf, PATH_MAX); in do_rename_merge()
1325 kfree(path_buf); in do_rename_merge()
H A Dinode_cloud_merge.c456 char *path_buf = kmalloc(PATH_MAX, GFP_KERNEL); in hmdfs_create_lower_cloud_dentry() local
462 if (unlikely(!path_buf || !absolute_path_buf)) { in hmdfs_create_lower_cloud_dentry()
467 path_name = dentry_path_raw(lo_d_parent, path_buf, PATH_MAX); in hmdfs_create_lower_cloud_dentry()
510 kfree(path_buf); in hmdfs_create_lower_cloud_dentry()
H A Dinode.h51 char *path_buf; member
H A Dstash.c554 kfree(cache->path_buf); in hmdfs_del_file_cache()
571 cache->path_buf = kmalloc(PATH_MAX, GFP_KERNEL); in hmdfs_new_file_cache()
572 if (!cache->path_buf) { in hmdfs_new_file_cache()
581 cache->path = dentry_path_raw(stash_dentry, cache->path_buf, in hmdfs_new_file_cache()
595 cache->path_buf[0] = '\0'; in hmdfs_new_file_cache()
596 cache->path = cache->path_buf; in hmdfs_new_file_cache()
615 kfree(cache->path_buf); in hmdfs_new_file_cache()
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dinode_merge.c935 char *path_buf = kmalloc(PATH_MAX, GFP_KERNEL); in hmdfs_create_lower_dentry() local
941 if (unlikely(!path_buf || !absolute_path_buf)) { in hmdfs_create_lower_dentry()
946 path_name = dentry_path_raw(lo_d_parent, path_buf, PATH_MAX); in hmdfs_create_lower_dentry()
989 kfree(path_buf); in hmdfs_create_lower_dentry()
1250 char *path_buf = kmalloc(PATH_MAX, GFP_KERNEL); in do_rename_merge() local
1261 if (unlikely(!path_buf || !abs_path_buf)) { in do_rename_merge()
1278 path_name = dentry_path_raw(lo_d_new_dir, path_buf, PATH_MAX); in do_rename_merge()
1333 kfree(path_buf); in do_rename_merge()
H A Dinode_cloud_merge.c456 char *path_buf = kmalloc(PATH_MAX, GFP_KERNEL); in hmdfs_create_lower_cloud_dentry() local
462 if (unlikely(!path_buf || !absolute_path_buf)) { in hmdfs_create_lower_cloud_dentry()
467 path_name = dentry_path_raw(lo_d_parent, path_buf, PATH_MAX); in hmdfs_create_lower_cloud_dentry()
510 kfree(path_buf); in hmdfs_create_lower_cloud_dentry()
H A Dinode.h51 char *path_buf; member
H A Dstash.c544 kfree(cache->path_buf); in hmdfs_del_file_cache()
561 cache->path_buf = kmalloc(PATH_MAX, GFP_KERNEL); in hmdfs_new_file_cache()
562 if (!cache->path_buf) { in hmdfs_new_file_cache()
571 cache->path = dentry_path_raw(stash_dentry, cache->path_buf, in hmdfs_new_file_cache()
585 cache->path_buf[0] = '\0'; in hmdfs_new_file_cache()
586 cache->path = cache->path_buf; in hmdfs_new_file_cache()
605 kfree(cache->path_buf); in hmdfs_new_file_cache()

Completed in 14 milliseconds