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

Function key_getspacq

freebsd/netipsec/key.c:6907–6922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6905}
6906
6907static struct secspacq *
6908key_getspacq(struct secpolicyindex *spidx)
6909{
6910 struct secspacq *acq;
6911
6912 SPACQ_LOCK();
6913 LIST_FOREACH(acq, &V_spacqtree, chain) {
6914 if (key_cmpspidx_exactly(spidx, &acq->spidx)) {
6915 /* NB: return holding spacq_lock */
6916 return acq;
6917 }
6918 }
6919 SPACQ_UNLOCK();
6920
6921 return NULL;
6922}
6923
6924/*
6925 * SADB_ACQUIRE processing,

Callers 1

key_spdacquireFunction · 0.85

Calls 1

key_cmpspidx_exactlyFunction · 0.85

Tested by

no test coverage detected