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

Function pack_kinfo

freebsd/kern/kern_descrip.c:4323–4330  ·  view source on GitHub ↗

Trim unused data from kf_path by truncating the structure size. */

Source from the content-addressed store, hash-verified

4321
4322/* Trim unused data from kf_path by truncating the structure size. */
4323void
4324pack_kinfo(struct kinfo_file *kif)
4325{
4326
4327 kif->kf_structsize = offsetof(struct kinfo_file, kf_path) +
4328 strlen(kif->kf_path) + 1;
4329 kif->kf_structsize = roundup(kif->kf_structsize, sizeof(uint64_t));
4330}
4331
4332static void
4333export_file_to_kinfo(struct file *fp, int fd, cap_rights_t *rightsp,

Callers 3

export_file_to_kinfoFunction · 0.85
export_vnode_to_kinfoFunction · 0.85
sysctl_posix_shm_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected