Home
last modified time | relevance | path

Searched refs:lstat (Results 1 – 25 of 41) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_stat.c276 struct iscsi_login_stats *lstat = &tiqn->login_stats; in iscsi_stat_tgt_attr_login_fails_show() local
279 spin_lock(&lstat->lock); in iscsi_stat_tgt_attr_login_fails_show()
280 fail_count = (lstat->redirects + lstat->authorize_fails + in iscsi_stat_tgt_attr_login_fails_show()
281 lstat->authenticate_fails + lstat->negotiate_fails + in iscsi_stat_tgt_attr_login_fails_show()
282 lstat->other_fails); in iscsi_stat_tgt_attr_login_fails_show()
283 spin_unlock(&lstat->lock); in iscsi_stat_tgt_attr_login_fails_show()
292 struct iscsi_login_stats *lstat = &tiqn->login_stats; in iscsi_stat_tgt_attr_last_fail_time_show() local
295 spin_lock(&lstat->lock); in iscsi_stat_tgt_attr_last_fail_time_show()
296 last_fail_time = lstat->last_fail_time ? in iscsi_stat_tgt_attr_last_fail_time_show()
297 (u32)(((u32)lstat->last_fail_time - in iscsi_stat_tgt_attr_last_fail_time_show()
[all …]
/kernel/linux/linux-5.10/arch/alpha/kernel/
Dosf_sys.c277 linux_to_osf_stat(struct kstat *lstat, struct osf_stat __user *osf_stat) in linux_to_osf_stat() argument
281 tmp.st_dev = lstat->dev; in linux_to_osf_stat()
282 tmp.st_mode = lstat->mode; in linux_to_osf_stat()
283 tmp.st_nlink = lstat->nlink; in linux_to_osf_stat()
284 tmp.st_uid = from_kuid_munged(current_user_ns(), lstat->uid); in linux_to_osf_stat()
285 tmp.st_gid = from_kgid_munged(current_user_ns(), lstat->gid); in linux_to_osf_stat()
286 tmp.st_rdev = lstat->rdev; in linux_to_osf_stat()
287 tmp.st_ldev = lstat->rdev; in linux_to_osf_stat()
288 tmp.st_size = lstat->size; in linux_to_osf_stat()
289 tmp.st_uatime = lstat->atime.tv_nsec / 1000; in linux_to_osf_stat()
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/
Dattr.c187 if (!lstat("./tests", &st)) in test__attr()
194 if (!lstat(path_dir, &st) && in test__attr()
195 !lstat(path_perf, &st)) in test__attr()
Dpe-file-parsing.c78 if (!lstat("./tests", &st)) in test__pe_file_parsing()
84 if (!lstat(path_dir, &st)) in test__pe_file_parsing()
Dbuiltin-test.c515 if (!lstat(devel_dirs[i], &st)) { in shell_tests__dir()
517 if (!lstat(devel_dirs[i], &st)) in shell_tests__dir()
/kernel/linux/linux-5.10/tools/testing/selftests/proc/
Dfd-001-lookup.c39 rv = lstat(pathname, &st); in test_lookup_pass()
49 rv = lstat(pathname, &st); in test_lookup_fail()
/kernel/linux/linux-5.10/tools/perf/trace/strace/groups/
Dfile7 lstat
Dstring30 lstat
/kernel/linux/linux-5.10/tools/testing/selftests/ia64/
Daliasing-test.c99 r = lstat(path2, &buf); in scan_tree()
188 r = lstat(path2, &buf); in scan_rom()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dcgx.c609 static inline void link_status_user_format(u64 lstat, in link_status_user_format() argument
615 linfo->link_up = FIELD_GET(RESP_LINKSTAT_UP, lstat); in link_status_user_format()
616 linfo->full_duplex = FIELD_GET(RESP_LINKSTAT_FDUPLEX, lstat); in link_status_user_format()
617 linfo->speed = cgx_speed_mbps[FIELD_GET(RESP_LINKSTAT_SPEED, lstat)]; in link_status_user_format()
624 static inline void cgx_link_change_handler(u64 lstat, in cgx_link_change_handler() argument
635 link_status_user_format(lstat, &event.link_uinfo, cgx, lmac->lmac_id); in cgx_link_change_handler()
636 err_type = FIELD_GET(RESP_LINKSTAT_ERRTYPE, lstat); in cgx_link_change_handler()
/kernel/liteos_a/testsuites/unittest/container/smoke/
DIt_time_container_009.cpp46 int ret = lstat(path.data(), &sb); in ReadlinkTime()
DIt_net_container_003.cpp47 int ret = lstat(path.data(), &sb); in ReadlinkNet()
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_sli4.h727 #define lpfc_qp_spin_lock_irqsave(lock, flag, qp, lstat) \ argument
733 qp->lock_conflict.lstat++; \
737 #define lpfc_qp_spin_lock(lock, qp, lstat) \ argument
743 qp->lock_conflict.lstat++; \
748 #define lpfc_qp_spin_lock_irqsave(lock, flag, qp, lstat) \ argument
750 #define lpfc_qp_spin_lock(lock, qp, lstat) spin_lock(lock) argument
/kernel/linux/linux-5.10/tools/perf/util/
Dutil.c157 ret = lstat(path, &statbuf); in rm_rf_depth_pat()
184 ret = lstat(namebuf, &statbuf); in rm_rf_depth_pat()
/kernel/linux/linux-5.10/drivers/gpu/drm/zte/
Dzx_hdmi.c342 u8 lstat; in zx_hdmi_irq_handler() local
344 lstat = hdmi_readb(hdmi, L1_INTR_STAT); in zx_hdmi_irq_handler()
347 if (lstat & L1_INTR_STAT_INTR1) { in zx_hdmi_irq_handler()
/kernel/liteos_a/testsuites/unittest/process/plimits/
Dprocess_plimits_test.cpp545 return (lstat(file.c_str(), &statbuf) == 0) && S_ISREG(statbuf.st_mode); in IsFile()
551 return (lstat(path.c_str(), &statbuf) == 0) && S_ISDIR(statbuf.st_mode); in IsDir()
/kernel/linux/linux-5.10/tools/thermal/tmon/
Dtmon.c145 if (lstat(TMON_LOG_FILE, &logstat) < 0) { in prepare_logging()
/kernel/linux/linux-5.10/arch/mips/kernel/syscalls/
Dsyscall_n64.tbl16 6 n64 lstat sys_newlstat
Dsyscall_n32.tbl16 6 n32 lstat sys_newlstat
/kernel/liteos_a/fs/vfs/operation/
Dvfs_other.c75 int lstat(const char *path, struct stat *buffer) in lstat() function
/kernel/linux/linux-5.10/arch/ia64/kernel/syscalls/
Dsyscall.tbl199 187 common lstat sys_newlstat
/kernel/linux/linux-5.10/arch/xtensa/kernel/syscalls/
Dsyscall.tbl60 49 common lstat sys_newlstat
/kernel/linux/linux-5.10/tools/perf/arch/x86/entry/syscalls/
Dsyscall_64.tbl17 6 common lstat sys_newlstat
/kernel/linux/linux-5.10/arch/x86/entry/syscalls/
Dsyscall_64.tbl17 6 common lstat sys_newlstat
/kernel/linux/linux-5.10/arch/arm/tools/
Dsyscall.tbl122 107 common lstat sys_newlstat

12