Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linuxkpi/common/src/linux_compat.c
Show First 20 Lines • Show All 1,669 Lines • ▼ Show 20 Lines | linux_file_stat(struct file *fp, struct stat *sb, struct ucred *active_cred) | ||||
filp = (struct linux_file *)fp->f_data; | filp = (struct linux_file *)fp->f_data; | ||||
if (filp->f_vnode == NULL) | if (filp->f_vnode == NULL) | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
vp = filp->f_vnode; | vp = filp->f_vnode; | ||||
vn_lock(vp, LK_SHARED | LK_RETRY); | vn_lock(vp, LK_SHARED | LK_RETRY); | ||||
error = VOP_STAT(vp, sb, curthread->td_ucred, NOCRED); | error = VOP_STAT(vp, sb, 0, curthread->td_ucred, NOCRED); | ||||
VOP_UNLOCK(vp); | VOP_UNLOCK(vp); | ||||
return (error); | return (error); | ||||
} | } | ||||
static int | static int | ||||
linux_file_fill_kinfo(struct file *fp, struct kinfo_file *kif, | linux_file_fill_kinfo(struct file *fp, struct kinfo_file *kif, | ||||
struct filedesc *fdp) | struct filedesc *fdp) | ||||
▲ Show 20 Lines • Show All 1,181 Lines • Show Last 20 Lines |