Home
last modified time | relevance | path

Searched refs:path (Results 1251 - 1275 of 3779) sorted by relevance

1...<<51525354555657585960>>...152

/kernel/linux/linux-6.6/tools/testing/selftests/mount_setattr/
H A Dmount_setattr_test.c137 static inline int sys_mount_setattr(int dfd, const char *path, unsigned int flags, in sys_mount_setattr() argument
140 return syscall(__NR_mount_setattr, dfd, path, flags, attr, size); in sys_mount_setattr()
171 static int write_file(const char *path, const void *buf, size_t count) in write_file() argument
176 fd = open(path, O_WRONLY | O_CLOEXEC | O_NOCTTY | O_NOFOLLOW); in write_file()
240 static int read_mnt_flags(const char *path) in read_mnt_flags() argument
246 ret = statvfs(path, &stat); in read_mnt_flags()
305 static bool is_shared_mount(const char *path) in is_shared_mount() argument
328 if (strcmp(target, path) != 0) in is_shared_mount()
1215 char path[256]; in get_userns_fd() local
1225 snprintf(path, sizeo in get_userns_fd()
1391 expected_uid_gid(int dfd, const char *path, int flags, uid_t expected_uid, gid_t expected_gid) expected_uid_gid() argument
[all...]
/kernel/linux/linux-6.6/tools/testing/kunit/
H A Dkunit_tool_test.py33 abs_test_data_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), 'test_data'))
38 def test_data_path(path):
39 return os.path.join(abs_test_data_dir, path)
68 kconfig_path = os.path.join(test_tmpdir, '.config')
404 with open(os.path.join(dir, '.kunitconfig'), 'w'):
414 other = os.path.join(dir, 'otherkunitconfig')
415 with open(os.path
[all...]
/kernel/linux/linux-5.10/fs/reiserfs/
H A Dsuper.c227 INITIALIZE_PATH(path); in finish_unfinished()
286 retval = search_item(s, &max_cpu_key, &path); in finish_unfinished()
293 bh = get_last_bh(&path); in finish_unfinished()
294 item_pos = get_item_pos(&path); in finish_unfinished()
321 pathrelse(&path); in finish_unfinished()
416 pathrelse(&path); in finish_unfinished()
432 INITIALIZE_PATH(path); in add_save_link()
480 retval = search_item(inode->i_sb, &key, &path); in add_save_link()
486 pathrelse(&path); in add_save_link()
495 reiserfs_insert_item(th, &path, in add_save_link()
2388 reiserfs_quota_on(struct super_block *sb, int type, int format_id, const struct path *path) reiserfs_quota_on() argument
[all...]
/kernel/linux/linux-6.6/fs/reiserfs/
H A Dsuper.c227 INITIALIZE_PATH(path); in finish_unfinished()
286 retval = search_item(s, &max_cpu_key, &path); in finish_unfinished()
293 bh = get_last_bh(&path); in finish_unfinished()
294 item_pos = get_item_pos(&path); in finish_unfinished()
321 pathrelse(&path); in finish_unfinished()
416 pathrelse(&path); in finish_unfinished()
432 INITIALIZE_PATH(path); in add_save_link()
480 retval = search_item(inode->i_sb, &key, &path); in add_save_link()
486 pathrelse(&path); in add_save_link()
495 reiserfs_insert_item(th, &path, in add_save_link()
2384 reiserfs_quota_on(struct super_block *sb, int type, int format_id, const struct path *path) reiserfs_quota_on() argument
[all...]
/kernel/linux/linux-6.6/fs/smb/server/
H A Dsmbacl.c999 const struct path *path, in smb_inherit_dacl()
1007 struct dentry *parent = path->dentry->d_parent; in smb_inherit_dacl()
1008 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_inherit_dacl()
1012 bool is_dir = S_ISDIR(d_inode(path->dentry)->i_mode); in smb_inherit_dacl()
1191 ksmbd_vfs_set_sd_xattr(conn, idmap, path, pntsd, pntsd_size, false); in smb_inherit_dacl()
1215 int smb_check_perm_dacl(struct ksmbd_conn *conn, const struct path *path, in smb_check_perm_dacl() argument
1218 struct mnt_idmap *idmap = mnt_idmap(path->mnt); in smb_check_perm_dacl()
1235 path in smb_check_perm_dacl()
998 smb_inherit_dacl(struct ksmbd_conn *conn, const struct path *path, unsigned int uid, unsigned int gid) smb_inherit_dacl() argument
1381 set_info_sec(struct ksmbd_conn *conn, struct ksmbd_tree_connect *tcon, const struct path *path, struct smb_ntsd *pntsd, int ntsd_len, bool type_check, bool get_write) set_info_sec() argument
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Dprom_init.c1666 call_prom("package-to-path", 3, 1, node, prom_scratch, in prom_init_mem()
1949 char *path = prom_scratch; in prom_initialize_tce_table() local
2014 /* It seems OF doesn't null-terminate the path :-( */ in prom_initialize_tce_table()
2015 memset(path, 0, sizeof(prom_scratch)); in prom_initialize_tce_table()
2017 if (call_prom("package-to-path", 3, 1, node, in prom_initialize_tce_table()
2018 path, sizeof(prom_scratch) - 1) == PROM_ERROR) { in prom_initialize_tce_table()
2019 prom_printf("package-to-path failed\n"); in prom_initialize_tce_table()
2023 prom_setprop(node, path, "linux,tce-base", &base, sizeof(base)); in prom_initialize_tce_table()
2024 prom_setprop(node, path, "linux,tce-size", &minsize, sizeof(minsize)); in prom_initialize_tce_table()
2026 prom_debug("TCE table: %s\n", path); in prom_initialize_tce_table()
2237 char *path = of_stdout_device; prom_init_stdout() local
2345 char type[16], *path; prom_check_displays() local
2553 char *namep, *prev_name, *sstart, *p, *ep, *lp, *path; scan_dt_build_struct() local
[all...]
H A Dlegacy_serial.c368 const char *path; in find_legacy_serial_ports() local
374 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in find_legacy_serial_ports()
375 if (path == NULL) in find_legacy_serial_ports()
376 path = of_get_property(of_chosen, "stdout-path", NULL); in find_legacy_serial_ports()
377 if (path != NULL) { in find_legacy_serial_ports()
378 stdout = of_find_node_by_path(path); in find_legacy_serial_ports()
382 DBG(" no linux,stdout-path !\n"); in find_legacy_serial_ports()
600 /* ... So use the full path instea in check_legacy_serial_console()
[all...]
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Dprom_init.c1694 call_prom("package-to-path", 3, 1, node, prom_scratch, in prom_init_mem()
1979 char *path = prom_scratch; in prom_initialize_tce_table() local
2044 /* It seems OF doesn't null-terminate the path :-( */ in prom_initialize_tce_table()
2045 memset(path, 0, sizeof(prom_scratch)); in prom_initialize_tce_table()
2047 if (call_prom("package-to-path", 3, 1, node, in prom_initialize_tce_table()
2048 path, sizeof(prom_scratch) - 1) == PROM_ERROR) { in prom_initialize_tce_table()
2049 prom_printf("package-to-path failed\n"); in prom_initialize_tce_table()
2053 prom_setprop(node, path, "linux,tce-base", &base, sizeof(base)); in prom_initialize_tce_table()
2054 prom_setprop(node, path, "linux,tce-size", &minsize, sizeof(minsize)); in prom_initialize_tce_table()
2056 prom_debug("TCE table: %s\n", path); in prom_initialize_tce_table()
2267 char *path = of_stdout_device; prom_init_stdout() local
2375 char type[16], *path; prom_check_displays() local
2583 char *namep, *prev_name, *sstart, *p, *ep, *lp, *path; scan_dt_build_struct() local
[all...]
H A Dlegacy_serial.c396 const char *path; in find_legacy_serial_ports() local
402 path = of_get_property(of_chosen, "linux,stdout-path", NULL); in find_legacy_serial_ports()
403 if (path == NULL) in find_legacy_serial_ports()
404 path = of_get_property(of_chosen, "stdout-path", NULL); in find_legacy_serial_ports()
405 if (path != NULL) { in find_legacy_serial_ports()
406 stdout = of_find_node_by_path(path); in find_legacy_serial_ports()
410 DBG(" no linux,stdout-path !\n"); in find_legacy_serial_ports()
634 /* ... So use the full path instea in check_legacy_serial_console()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter.c359 static int do_read(const char *path, const char *expected) in do_read() argument
363 iter_fd = open(path, O_RDONLY); in do_read()
365 path, strerror(errno))) in do_read()
375 const char *path = "/sys/fs/bpf/bpf_iter_test1"; in test_file_iter() local
390 /* unlink this path if it exists. */ in test_file_iter()
391 unlink(path); in test_file_iter()
393 err = bpf_link__pin(link, path); in test_file_iter()
394 if (CHECK(err, "pin_iter", "pin_iter to %s failed: %d\n", path, err)) in test_file_iter()
397 err = do_read(path, "abcd"); in test_file_iter()
414 do_read(path, "ABC in test_file_iter()
[all...]
/kernel/linux/linux-5.10/drivers/staging/rtl8712/
H A Drtl871x_mp_ioctl.c104 u8 path; in oid_rt_pro_write_rf_reg_hdl() local
113 path = (u8)pbbreg->path; in oid_rt_pro_write_rf_reg_hdl()
114 if (path > RF_PATH_B) in oid_rt_pro_write_rf_reg_hdl()
118 r8712_rf_reg_write(Adapter, path, offset, value); in oid_rt_pro_write_rf_reg_hdl()
127 u8 path; in oid_rt_pro_read_rf_reg_hdl() local
136 path = (u8)pbbreg->path; in oid_rt_pro_read_rf_reg_hdl()
137 if (path > RF_PATH_B) /* 1T2R path_a /path_b */ in oid_rt_pro_read_rf_reg_hdl()
140 value = r8712_rf_reg_read(Adapter, path, offse in oid_rt_pro_read_rf_reg_hdl()
[all...]
/kernel/linux/linux-5.10/lib/
H A Dkobject.c147 static int fill_kobj_path(struct kobject *kobj, char *path, int length) in fill_kobj_path() argument
158 memcpy(path + length, kobject_name(parent), cur); in fill_kobj_path()
159 *(path + --length) = '/'; in fill_kobj_path()
162 pr_debug("kobject: '%s' (%p): %s: path = '%s'\n", kobject_name(kobj), in fill_kobj_path()
163 kobj, __func__, path); in fill_kobj_path()
169 * kobject_get_path() - Allocate memory and fill in the path for @kobj.
170 * @kobj: kobject in question, with which to build the path
171 * @gfp_mask: the allocation type used to allocate the path
177 char *path; in kobject_get_path() local
184 path in kobject_get_path()
[all...]
/kernel/linux/linux-6.6/drivers/staging/rtl8712/
H A Drtl871x_mp_ioctl.c104 u8 path; in oid_rt_pro_write_rf_reg_hdl() local
113 path = (u8)pbbreg->path; in oid_rt_pro_write_rf_reg_hdl()
114 if (path > RF_PATH_B) in oid_rt_pro_write_rf_reg_hdl()
118 r8712_rf_reg_write(Adapter, path, offset, value); in oid_rt_pro_write_rf_reg_hdl()
127 u8 path; in oid_rt_pro_read_rf_reg_hdl() local
136 path = (u8)pbbreg->path; in oid_rt_pro_read_rf_reg_hdl()
137 if (path > RF_PATH_B) /* 1T2R path_a /path_b */ in oid_rt_pro_read_rf_reg_hdl()
140 value = r8712_rf_reg_read(Adapter, path, offse in oid_rt_pro_read_rf_reg_hdl()
[all...]
/kernel/linux/linux-6.6/drivers/of/
H A Doverlay.c185 * need to be adjusted to be the correct path for the live device tree.
189 * where symbol_path_tail can be a single node or it may be a multi-node path.
193 * path from the fragment node.
202 const char *path; in dup_and_fixup_symbol_prop() local
215 path = prop->value; in dup_and_fixup_symbol_prop()
216 path_len = strlen(path); in dup_and_fixup_symbol_prop()
220 fragment_node = __of_find_node_by_path(ovcs->overlay_root, path + 1); in dup_and_fixup_symbol_prop()
237 path_tail = path + overlay_name_len; in dup_and_fixup_symbol_prop()
388 * not contain the full path in node->full_name. Thus an overlay
389 * created from an FDT also will not contain the full path i
690 const char *path; find_target() local
[all...]
/kernel/linux/linux-6.6/drivers/parisc/
H A Dpdc_stable.c18 * One last word: there's one path we can always count on: the primary path.
85 /* This struct defines what we need to deal with a parisc pdc path entry */
87 rwlock_t rw_lock; /* to protect path entry access */
91 struct pdc_module_path devpath; /* device path in parisc representation */
127 * pdcspath_fetch - This function populates the path entry structs.
168 * pdcspath_store - This function writes a path to stable storage.
172 * containing an already computed hardware path, or by passing it a device
173 * pointer, from which it'll find out the corresponding hardware path.
189 path struc in pdcspath_store()
[all...]
/kernel/linux/linux-6.6/block/
H A Dbdev.c855 * @path: path to the block device to open
860 * Open the block device described by the device file at @path. If @holder is
870 struct block_device *blkdev_get_by_path(const char *path, blk_mode_t mode, in blkdev_get_by_path() argument
877 error = lookup_bdev(path, &dev); in blkdev_get_by_path()
891 struct bdev_handle *bdev_open_by_path(const char *path, blk_mode_t mode, in bdev_open_by_path() argument
898 error = lookup_bdev(path, &dev); in bdev_open_by_path()
970 struct path path; in lookup_bdev() local
976 error = kern_path(pathname, LOOKUP_FOLLOW, &path); in lookup_bdev()
[all...]
/kernel/linux/linux-6.6/scripts/
H A Dget_abi.pl374 my $path = $filepath[$i];
377 $path =~ s,.*/(.*/.*),$1,;;
378 $path =~ s,[/\-],_,g;;
379 my $fileref = "abi_file_".$path;
435 my $path = $f;
436 $path =~ s,.*/(.*/.*),$1,;;
437 $path =~ s,[/\-],_,g;;
438 $xref .= " <abi_file_" . $path . ">";
549 # Exclude /sys/kernel/debug and /sys/kernel/tracing from the search path
725 my $path
[all...]
/kernel/liteos_a/fs/jffs2/src/
H A Dvfs_jffs2.c187 int VfsJffs2Lookup(struct Vnode *parentVnode, const char *path, int len, struct Vnode **ppVnode) in VfsJffs2Lookup() argument
197 node = jffs2_lookup(parentNode, (const unsigned char *)path, len); in VfsJffs2Lookup()
238 int VfsJffs2Create(struct Vnode *parentVnode, const char *path, int mode, struct Vnode **ppVnode) in VfsJffs2Create() argument
250 ret = jffs2_create((struct jffs2_inode *)parentVnode->data, (const unsigned char *)path, mode, &newNode); in VfsJffs2Create()
669 int VfsJffs2Rmdir(struct Vnode *parentVnode, struct Vnode *targetVnode, const char *path) in VfsJffs2Rmdir() argument
684 ret = jffs2_rmdir(parentInode, targetInode, (const unsigned char *)path); in VfsJffs2Rmdir()
729 int VfsJffs2Symlink(struct Vnode *parentVnode, struct Vnode **newVnode, const char *path, const char *target) in VfsJffs2Symlink() argument
741 ret = jffs2_symlink((struct jffs2_inode *)parentVnode->data, &inode, (const unsigned char *)path, target); in VfsJffs2Symlink()
793 int VfsJffs2Unlink(struct Vnode *parentVnode, struct Vnode *targetVnode, const char *path) in VfsJffs2Unlink() argument
809 ret = jffs2_unlink(parentInode, targetInode, (const unsigned char *)path); in VfsJffs2Unlink()
[all...]
/kernel/linux/linux-6.6/lib/
H A Dkobject.c124 static int fill_kobj_path(const struct kobject *kobj, char *path, int length) in fill_kobj_path() argument
135 memcpy(path + length, kobject_name(parent), cur); in fill_kobj_path()
136 *(path + --length) = '/'; in fill_kobj_path()
139 pr_debug("'%s' (%p): %s: path = '%s'\n", kobject_name(kobj), in fill_kobj_path()
140 kobj, __func__, path); in fill_kobj_path()
146 * kobject_get_path() - Allocate memory and fill in the path for @kobj.
147 * @kobj: kobject in question, with which to build the path
148 * @gfp_mask: the allocation type used to allocate the path
154 char *path; in kobject_get_path() local
161 path in kobject_get_path()
[all...]
/kernel/linux/linux-6.6/tools/bpf/bpftool/
H A Dfeature.c146 char ifname[IF_NAMESIZE], path[64], buf[8]; in get_vendor_id() local
153 snprintf(path, sizeof(path), "/sys/class/net/%s/device/vendor", ifname); in get_vendor_id()
155 fd = open(path, O_RDONLY | O_CLOEXEC); in get_vendor_id()
170 static long read_procfs(const char *path) in read_procfs() argument
177 fd = fopen(path, "r"); in read_procfs()
443 char path[PATH_MAX]; in probe_kernel_image_config() local
450 snprintf(path, sizeof(path), "/boot/config-%s", utsn.release); in probe_kernel_image_config()
453 file = gzopen(path, " in probe_kernel_image_config()
[all...]
/test/xts/hats/hdf/camera/cameraHdi/v4l2/src/
H A Dusb_camera_test_mult.cpp152 char path[pathLen] = {0}; in StoreImage() local
164 if (sprintf_s(path, sizeof(path), "%spicture222_%ld.jpeg", prefix, start.tv_usec) < 0) { in StoreImage()
169 imgFD = open(path, O_RDWR | O_CREAT, 00766); // 00766:file operate permission in StoreImage()
175 CAMERA_LOGD("demo test:StoreImage2 %{public}s size == %{public}d\n", path, size); in StoreImage()
199 char path[pathLen] = {0}; in OpenVideoFile() local
206 if (sprintf_s(path, sizeof(path), "%svideo222%ld.h264", prefix, seconds) < 0) { in OpenVideoFile()
210 videoFd_ = open(path, O_RDWR | O_CREAT, 00766); // 00766:file operate permission in OpenVideoFile()
212 CAMERA_LOGE("demo test: StartVideo open %s %{public}s failed", path, strerro in OpenVideoFile()
[all...]
/kernel/linux/linux-6.6/net/unix/
H A Daf_unix.c56 * accept() returns a path name even if the connecting socket has closed
57 * in the meantime (BSD loses the path and gives up).
58 * accept() returns 0 length path for an unbound connector. BSD returns 16
59 * and a null first byte in the path (but not for gethost/peername - BSD bug ??)
298 * subtle. 108 is the longest valid AF_UNIX path for a binding. in unix_mkname_bsd()
405 struct dentry *dentry = unix_sk(s)->path.dentry; in unix_find_socket_byinode()
607 struct path path; in unix_release_sock() local
617 path = u->path; in unix_release_sock()
1073 struct path path; unix_find_bsd() local
2982 struct path path; unix_open_file() local
[all...]
/kernel/linux/linux-5.10/drivers/acpi/
H A Ddevice_sysfs.c23 struct acpi_buffer path = {ACPI_ALLOCATE_BUFFER, NULL}; in acpi_object_path() local
26 result = acpi_get_name(handle, ACPI_FULL_PATHNAME, &path); in acpi_object_path()
30 result = sprintf(buf, "%s\n", (char *)path.pointer); in acpi_object_path()
31 kfree(path.pointer); in acpi_object_path()
50 DATA_NODE_ATTR(path); variable
431 static DEVICE_ATTR_RO(path);
514 * Devices gotten from FADT don't have a "path" attribute in acpi_device_setup_files()
/kernel/linux/linux-5.10/arch/parisc/kernel/
H A Dsys_parisc.c281 asmlinkage long parisc_truncate64(const char __user * path, in parisc_truncate64() argument
284 return ksys_truncate(path, (long)high << 32 | low); in parisc_truncate64()
295 asmlinkage long sys_truncate64(const char __user * path, unsigned long length) in sys_truncate64() argument
297 return ksys_truncate(path, length); in sys_truncate64()
309 asmlinkage long parisc_truncate64(const char __user * path, in parisc_truncate64() argument
312 return ksys_truncate(path, (loff_t)high << 32 | low); in parisc_truncate64()
/kernel/linux/linux-5.10/security/
H A Dlsm_audit.c236 audit_log_d_path(ab, " path=", &a->u.path); in dump_common_audit_data()
238 inode = d_backing_inode(a->u.path.dentry); in dump_common_audit_data()
250 audit_log_d_path(ab, " path=", &a->u.file->f_path); in dump_common_audit_data()
264 audit_log_d_path(ab, " path=", &a->u.op->path); in dump_common_audit_data()
266 inode = a->u.op->path.dentry->d_inode; in dump_common_audit_data()
364 if (u->path.dentry) { in dump_common_audit_data()
365 audit_log_d_path(ab, " path=", &u->path); in dump_common_audit_data()
[all...]

Completed in 31 milliseconds

1...<<51525354555657585960>>...152