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

Function sglist_init

freebsd/sys/sglist.h:62–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60struct uio;
61
62static __inline void
63sglist_init(struct sglist *sg, u_short maxsegs, struct sglist_seg *segs)
64{
65
66 sg->sg_segs = segs;
67 sg->sg_nseg = 0;
68 sg->sg_maxseg = maxsegs;
69 refcount_init(&sg->sg_refs, 1);
70}
71
72static __inline void
73sglist_reset(struct sglist *sg)

Callers 1

sglist_allocFunction · 0.85

Calls 1

refcount_initFunction · 0.85

Tested by

no test coverage detected