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

Function thread_cow_get

freebsd/kern/kern_thread.c:795–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795void
796thread_cow_get(struct thread *newtd, struct thread *td)
797{
798
799 MPASS(td->td_realucred == td->td_ucred);
800 newtd->td_realucred = crcowget(td->td_realucred);
801 newtd->td_ucred = newtd->td_realucred;
802 newtd->td_limit = lim_hold(td->td_limit);
803 newtd->td_cowgen = td->td_cowgen;
804}
805
806void
807thread_cow_free(struct thread *td)

Callers 1

thread_createFunction · 0.85

Calls 2

crcowgetFunction · 0.85
lim_holdFunction · 0.70

Tested by

no test coverage detected