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

Function sess_release

freebsd/kern/kern_proc.c:969–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967}
968
969void
970sess_release(struct session *s)
971{
972
973 if (refcount_release(&s->s_count)) {
974 if (s->s_ttyp != NULL) {
975 tty_lock(s->s_ttyp);
976 tty_rel_sess(s->s_ttyp, s);
977 }
978 proc_id_clear(PROC_ID_SESSION, s->s_sid);
979 mtx_destroy(&s->s_mtx);
980 free(s, M_SESSION);
981 }
982}
983
984#ifdef DDB
985

Callers 2

pgdeleteFunction · 0.85
vtprintfFunction · 0.85

Calls 4

refcount_releaseFunction · 0.85
tty_rel_sessFunction · 0.85
proc_id_clearFunction · 0.85
freeFunction · 0.70

Tested by

no test coverage detected