| 699 | } |
| 700 | |
| 701 | static struct csession * |
| 702 | cse_find(struct fcrypt *fcr, u_int ses) |
| 703 | { |
| 704 | struct csession *cse; |
| 705 | |
| 706 | mtx_lock(&fcr->lock); |
| 707 | TAILQ_FOREACH(cse, &fcr->csessions, next) { |
| 708 | if (cse->ses == ses) { |
| 709 | refcount_acquire(&cse->refs); |
| 710 | mtx_unlock(&fcr->lock); |
| 711 | return (cse); |
| 712 | } |
| 713 | } |
| 714 | mtx_unlock(&fcr->lock); |
| 715 | return (NULL); |
| 716 | } |
| 717 | |
| 718 | static void |
| 719 | cse_free(struct csession *cse) |
no test coverage detected