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

Function vfs_free_addrlist

freebsd/kern/vfs_export.c:277–291  ·  view source on GitHub ↗

* Free the net address hash lists that are hanging off the mount points. */

Source from the content-addressed store, hash-verified

275 * Free the net address hash lists that are hanging off the mount points.
276 */
277static void
278vfs_free_addrlist(struct netexport *nep)
279{
280 struct ucred *cred;
281
282 if (nep->ne4 != NULL)
283 vfs_free_addrlist_af(&nep->ne4);
284 if (nep->ne6 != NULL)
285 vfs_free_addrlist_af(&nep->ne6);
286
287 cred = nep->ne_defexported.netc_anon;
288 if (cred != NULL)
289 crfree(cred);
290
291}
292
293/*
294 * High level function to manipulate export options on a mount point

Callers 1

vfs_exportFunction · 0.85

Calls 2

vfs_free_addrlist_afFunction · 0.85
crfreeFunction · 0.70

Tested by

no test coverage detected