MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ptsdev_fill_kinfo

Function ptsdev_fill_kinfo

freebsd/kern/tty_pts.c:595–607  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595static int
596ptsdev_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)
597{
598 struct tty *tp;
599
600 kif->kf_type = KF_TYPE_PTS;
601 tp = fp->f_data;
602 kif->kf_un.kf_pts.kf_pts_dev = tty_udev(tp);
603 kif->kf_un.kf_pts.kf_pts_dev_freebsd11 =
604 kif->kf_un.kf_pts.kf_pts_dev; /* truncate */
605 strlcpy(kif->kf_path, tty_devname(tp), sizeof(kif->kf_path));
606 return (0);
607}
608
609static struct fileops ptsdev_ops = {
610 .fo_read = ptsdev_read,

Callers

nothing calls this directly

Calls 2

tty_udevFunction · 0.70
strlcpyFunction · 0.50

Tested by

no test coverage detected