Searched refs:path (Results 276 - 300 of 1248) sorted by relevance

<<11121314151617181920>>

/linux-master/include/uapi/linux/netfilter/
H A Dxt_bpf.h35 char path[XT_BPF_PATH_MAX]; member in union:xt_bpf_info_v1::__anon13066
/linux-master/tools/power/cpupower/utils/helpers/
H A Dsysfs.h9 extern unsigned int sysfs_read_file(const char *path, char *buf, size_t buflen);
/linux-master/tools/cgroup/
H A Diocost_coef_gen.py59 # determine ('DEVNAME', 'MAJ:MIN') for @path
60 def dir_to_dev(path):
62 devname = subprocess.run(f'findmnt -nvo SOURCE -T{path}',
64 devname = os.path.basename(devname).decode('utf-8').strip()
69 devname = os.path.basename(os.path.dirname(parents[0]))
73 def create_testfile(path, size):
76 if os.path.isfile(path) and os.stat(path)
[all...]
/linux-master/tools/testing/selftests/pidfd/
H A Dpidfd_open_test.c89 char path[512]; local
95 snprintf(path, sizeof(path), "/proc/self/fdinfo/%d", pidfd);
97 f = fopen(path, "re");
/linux-master/fs/ocfs2/
H A Dalloc.h106 struct ocfs2_path *path,
263 * Structures which describe a path through a btree, and functions to
289 void ocfs2_reinit_path(struct ocfs2_path *path, int keep_root);
290 void ocfs2_free_path(struct ocfs2_path *path);
292 struct ocfs2_path *path,
294 struct ocfs2_path *ocfs2_new_path_from_path(struct ocfs2_path *path);
298 struct ocfs2_path *path,
302 struct ocfs2_path *path);
304 struct ocfs2_path *path, u32 *cpos);
306 struct ocfs2_path *path, u3
[all...]
/linux-master/tools/testing/selftests/bpf/
H A Dtest_bpftool.py14 cur_dir = os.path.dirname(os.path.realpath(__file__))
15 bpftool_dir = os.path.abspath(os.path.join(cur_dir, "..", "..", "..", "..",
/linux-master/tools/testing/selftests/arm64/fp/
H A Dvlset.c106 char *path; local
151 path = argv[optind];
153 execvp(path, &argv[optind]);
157 fprintf(stderr, "%s: %s: %s\n", program_name, path, strerror(e));
/linux-master/tools/thermal/thermometer/
H A Dthermometer.c101 static int configuration_init(const char *path, struct configuration *config) argument
108 if (path && access(path, F_OK)) {
109 ERROR("'%s' is not accessible\n", path);
113 if (!path && !config->nr_tz_regex) {
120 if (!config_read_file(&cfg, path)) {
257 static int thermometer_add_tz(const char *path, const char *name, int polling, argument
263 sprintf(tz_path, CLASS_THERMAL"/%s/temp", path);
283 INFO("Added thermal zone '%s->%s (polling:%d)'\n", path, name, polling);
359 char *path; local
[all...]
/linux-master/arch/powerpc/boot/
H A Dserial.c87 char path[MAX_PATH_LEN]; local
93 if (getprop(devp, "linux,stdout-path", path, MAX_PATH_LEN) > 0 ||
94 getprop(devp, "stdout-path", path, MAX_PATH_LEN) > 0) {
95 devp = finddevice(path);
/linux-master/drivers/md/
H A Ddm-ps-io-affinity.c7 #include "dm-path-selector.h"
15 struct dm_path *path; member in struct:path_info
43 static int ioa_add_path(struct path_selector *ps, struct dm_path *path, argument
58 *error = "io-affinity ps: Error allocating path context";
62 pi->path = path;
63 path->pscontext = pi;
153 static int ioa_status(struct path_selector *ps, struct dm_path *path, argument
160 if (!path) {
170 pi = path
[all...]
/linux-master/drivers/pps/clients/
H A Dpps-ldisc.c52 snprintf(info.path, PPS_MAX_NAME_LEN, "/dev/%s%d", drv->name, index);
60 pr_err("cannot register PPS source \"%s\"\n", info.path);
68 pr_err("cannot open tty ldisc \"%s\"\n", info.path);
72 dev_info(pps->dev, "source \"%s\" added\n", info.path);
/linux-master/drivers/gpu/drm/i915/gvt/
H A Dfirmware.c205 char *path; local
209 path = kmalloc(PATH_MAX, GFP_KERNEL);
210 if (!path)
215 kfree(path);
223 kfree(path);
230 sprintf(path, "%s/vid_0x%04x_did_0x%04x_rid_0x%02x.golden_hw_state",
234 gvt_dbg_core("request hw state firmware %s...\n", path);
236 ret = request_firmware(&fw, path, gvt->gt->i915->drm.dev);
237 kfree(path);
/linux-master/tools/testing/kunit/
H A Dkunit_config.py76 def write_to_file(self, path: str) -> None:
77 with open(path, 'a+') as f:
81 def parse_file(path: str) -> Kconfig:
82 with open(path, 'r') as f:
/linux-master/tools/bpf/bpftool/
H A Dcommon.c71 static bool is_bpffs(const char *path) argument
75 if (statfs(path, &st_fs) < 0)
196 int open_obj_pinned(const char *path, bool quiet) argument
201 pname = strdup(path);
224 int open_obj_pinned_any(const char *path, enum bpf_obj_type exp_type) argument
229 fd = open_obj_pinned(path, false);
381 char path[PATH_MAX]; local
385 snprintf(path, sizeof(path), "/proc/self/fd/%d", fd);
387 n = readlink(path, bu
409 char path[PATH_MAX]; local
480 char *path; local
534 char *path = mntent->mnt_dir; local
598 read_sysfs_hex_int(char *path) argument
851 char *path; local
988 char *path; local
1098 pathname_concat(char *buf, int buf_sz, const char *path, const char *name) argument
[all...]
/linux-master/drivers/s390/char/
H A Dmonreader.c48 struct iucv_path *path; member in struct:mon_private
152 rc = iucv_message_reply(monpriv->path, &monmsg->msg,
230 static void mon_iucv_path_complete(struct iucv_path *path, u8 *ipuser) argument
232 struct mon_private *monpriv = path->private;
238 static void mon_iucv_path_severed(struct iucv_path *path, u8 *ipuser) argument
240 struct mon_private *monpriv = path->private;
244 iucv_path_sever(path, NULL);
250 static void mon_iucv_message_pending(struct iucv_path *path, argument
253 struct mon_private *monpriv = path->private;
295 monpriv->path
[all...]
/linux-master/sound/xen/
H A Dxen_snd_front_cfg.c151 const char *path, struct snd_pcm_hardware *pcm_hw)
187 const char *path, struct snd_pcm_hardware *pcm_hw)
239 static void cfg_read_pcm_hw(const char *path, argument
254 val = xenbus_read_unsigned(path, XENSND_FIELD_CHANNELS_MIN, 0);
258 val = xenbus_read_unsigned(path, XENSND_FIELD_CHANNELS_MAX, 0);
262 list = xenbus_read(XBT_NIL, path, XENSND_FIELD_SAMPLE_RATES, &len);
264 cfg_hw_rates(list, len, path, pcm_hw);
268 list = xenbus_read(XBT_NIL, path, XENSND_FIELD_SAMPLE_FORMATS, &len);
270 cfg_formats(list, len, path, pcm_hw);
274 buf_sz = xenbus_read_unsigned(path, XENSND_FIELD_BUFFER_SIZ
150 cfg_hw_rates(char *list, unsigned int len, const char *path, struct snd_pcm_hardware *pcm_hw) argument
186 cfg_formats(char *list, unsigned int len, const char *path, struct snd_pcm_hardware *pcm_hw) argument
291 cfg_get_stream_type(const char *path, int index, int *num_pb, int *num_cap) argument
331 cfg_stream(struct xen_snd_front_info *front_info, struct xen_front_cfg_pcm_instance *pcm_instance, const char *path, int index, int *cur_pb, int *cur_cap, int *stream_cnt) argument
383 cfg_device(struct xen_snd_front_info *front_info, struct xen_front_cfg_pcm_instance *pcm_instance, struct snd_pcm_hardware *parent_pcm_hw, const char *path, int node_index, int *stream_cnt) argument
[all...]
/linux-master/fs/btrfs/tests/
H A Dextent-buffer-tests.c16 struct btrfs_path *path = NULL; local
44 path = btrfs_alloc_path();
45 if (!path) {
52 path->nodes[0] = eb;
58 path->slots[0] = 0;
68 btrfs_setup_item_for_insert(NULL, root, path, &key, value_len);
79 ret = btrfs_split_item(NULL, root, path, &key, 17);
138 ret = btrfs_split_item(NULL, root, path, &key, 4);
213 btrfs_free_path(path);
/linux-master/security/apparmor/include/
H A Dfile.h22 struct path;
87 struct aa_label *label, const struct path *path,
91 struct dentry *old_dentry, const struct path *new_dir,
/linux-master/tools/perf/arch/arm64/util/
H A Dheader.c31 char path[PATH_MAX]; local
34 scnprintf(path, PATH_MAX, "%s/devices/system/cpu/cpu%d" MIDR,
37 file = fopen(path, "r");
39 pr_debug("fopen failed for file %s\n", path);
/linux-master/fs/ext4/
H A Dsymlink.c59 const struct path *path,
63 ext4_getattr(idmap, path, stat, request_mask, query_flags);
65 return fscrypt_symlink_getattr(path, stat);
58 ext4_encrypted_symlink_getattr(struct mnt_idmap *idmap, const struct path *path, struct kstat *stat, u32 request_mask, unsigned int query_flags) argument
/linux-master/include/linux/
H A Dtrace_seq.h101 extern int trace_seq_path(struct trace_seq *s, const struct path *path);
150 static inline int trace_seq_path(struct trace_seq *s, const struct path *path) argument
/linux-master/fs/btrfs/
H A Dprops.h25 int btrfs_load_inode_props(struct inode *inode, struct btrfs_path *path);
/linux-master/security/landlock/
H A Dfs.c25 #include <linux/path.h>
155 * @path: Should have been checked by get_path_from_fd().
158 const struct path *const path,
167 if (!d_is_dir(path->dentry) &&
176 id.key.object = get_inode_object(d_backing_inode(path->dentry));
571 * is_access_to_paths_allowed - Check accesses for requests with a common path
574 * @path: File hierarchy to walk through.
577 * requested path for most actions, or the source in case of a refer action
582 * this matrix can be unset according to the @path wal
157 landlock_append_fs_rule(struct landlock_ruleset *const ruleset, const struct path *const path, access_mask_t access_rights) argument
609 is_access_to_paths_allowed( const struct landlock_ruleset *const domain, const struct path *const path, const access_mask_t access_request_parent1, layer_mask_t (*const layer_masks_parent1)[LANDLOCK_NUM_ACCESS_FS], const struct dentry *const dentry_child1, const access_mask_t access_request_parent2, layer_mask_t (*const layer_masks_parent2)[LANDLOCK_NUM_ACCESS_FS], const struct dentry *const dentry_child2) argument
767 check_access_path(const struct landlock_ruleset *const domain, const struct path *const path, access_mask_t access_request) argument
781 current_check_access_path(const struct path *const path, const access_mask_t access_request) argument
1179 hook_sb_mount(const char *const dev_name, const struct path *const path, const char *const type, const unsigned long flags, void *const data) argument
1287 hook_path_truncate(const struct path *const path) argument
[all...]
/linux-master/scripts/kconfig/tests/
H A Dconftest.py18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf'))
36 self._test_dir = os.path.dirname(str(request.fspath))
66 shutil.copyfile(os.path.join(self._test_dir, dot_config),
67 os.path.join(temp_dir, '.config'))
94 with open(os.path.join(temp_dir, out_file)) as f:
154 defconfig_path = os.path.join(self._test_dir, defconfig)
159 all_config_path = os.path.join(self._test_dir, all_config)
234 with open(os.path.join(self._test_dir, expected)) as f:
/linux-master/tools/testing/selftests/exec/
H A Dexecveat.c33 static int execveat_(int fd, const char *path, char **argv, char **envp, argument
37 return syscall(__NR_execveat, fd, path, argv, envp, flags);
44 #define check_execveat_fail(fd, path, flags, errno) \
45 _check_execveat_fail(fd, path, flags, errno, #errno)
46 static int _check_execveat_fail(int fd, const char *path, int flags, argument
55 fd, path?:"(null)", flags, errno_str);
56 rc = execveat_(fd, path, argv, envp, flags);
74 static int check_execveat_invoked_rc(int fd, const char *path, int flags, argument
81 int pathlen = path ? strlen(path)
130 check_execveat(int fd, const char *path, int flags) argument
[all...]

Completed in 572 milliseconds

<<11121314151617181920>>