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

Function pipe_chown

freebsd/kern/sys_pipe.c:1565–1578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1563}
1564
1565static int
1566pipe_chown(struct file *fp, uid_t uid, gid_t gid, struct ucred *active_cred,
1567 struct thread *td)
1568{
1569 struct pipe *cpipe;
1570 int error;
1571
1572 cpipe = fp->f_data;
1573 if (cpipe->pipe_type & PIPE_TYPE_NAMED)
1574 error = vn_chown(fp, uid, gid, active_cred, td);
1575 else
1576 error = invfo_chown(fp, uid, gid, active_cred, td);
1577 return (error);
1578}
1579
1580static int
1581pipe_fill_kinfo(struct file *fp, struct kinfo_file *kif, struct filedesc *fdp)

Callers

nothing calls this directly

Calls 2

vn_chownFunction · 0.85
invfo_chownFunction · 0.85

Tested by

no test coverage detected