Lines Matching refs:nc
184 struct nscookie *nc) in nsinfo__mountns_enter() argument
190 if (nc == NULL) in nsinfo__mountns_enter()
193 nc->oldns = -1; in nsinfo__mountns_enter()
194 nc->newns = -1; in nsinfo__mountns_enter()
213 nc->oldns = oldns; in nsinfo__mountns_enter()
214 nc->newns = newns; in nsinfo__mountns_enter()
224 void nsinfo__mountns_exit(struct nscookie *nc) in nsinfo__mountns_exit() argument
226 if (nc == NULL || nc->oldns == -1 || nc->newns == -1) in nsinfo__mountns_exit()
229 setns(nc->oldns, CLONE_NEWNS); in nsinfo__mountns_exit()
231 if (nc->oldns > -1) { in nsinfo__mountns_exit()
232 close(nc->oldns); in nsinfo__mountns_exit()
233 nc->oldns = -1; in nsinfo__mountns_exit()
236 if (nc->newns > -1) { in nsinfo__mountns_exit()
237 close(nc->newns); in nsinfo__mountns_exit()
238 nc->newns = -1; in nsinfo__mountns_exit()