audit_pipe.c (10b3b54548f2290bbe8d8f88c59c28d12b7a635d) audit_pipe.c (6aba400a7055ed2427c6aa297774fb91f5d8db79)
1/*-
2 * Copyright (c) 2006 Robert N. M. Watson
3 * Copyright (c) 2008-2009 Apple, Inc.
4 * All rights reserved.
5 *
6 * This software was developed by Robert Watson for the TrustedBSD Project.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 632 unchanged lines hidden (view full) ---

641 AUDIT_PIPE_LIST_WLOCK_ASSERT();
642 AUDIT_PIPE_LOCK_ASSERT(ap);
643
644 audit_pipe_preselect_flush_locked(ap);
645 audit_pipe_flush(ap);
646 cv_destroy(&ap->ap_cv);
647 AUDIT_PIPE_SX_LOCK_DESTROY(ap);
648 AUDIT_PIPE_LOCK_DESTROY(ap);
1/*-
2 * Copyright (c) 2006 Robert N. M. Watson
3 * Copyright (c) 2008-2009 Apple, Inc.
4 * All rights reserved.
5 *
6 * This software was developed by Robert Watson for the TrustedBSD Project.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 632 unchanged lines hidden (view full) ---

641 AUDIT_PIPE_LIST_WLOCK_ASSERT();
642 AUDIT_PIPE_LOCK_ASSERT(ap);
643
644 audit_pipe_preselect_flush_locked(ap);
645 audit_pipe_flush(ap);
646 cv_destroy(&ap->ap_cv);
647 AUDIT_PIPE_SX_LOCK_DESTROY(ap);
648 AUDIT_PIPE_LOCK_DESTROY(ap);
649 seldrain(&ap->ap_selinfo);
649 knlist_destroy(&ap->ap_selinfo.si_note);
650 TAILQ_REMOVE(&audit_pipe_list, ap, ap_list);
651 free(ap, M_AUDIT_PIPE);
652 audit_pipe_count--;
653}
654
655/*
656 * Audit pipe clone routine -- provide specific requested audit pipe, or a

--- 472 unchanged lines hidden ---
650 knlist_destroy(&ap->ap_selinfo.si_note);
651 TAILQ_REMOVE(&audit_pipe_list, ap, ap_list);
652 free(ap, M_AUDIT_PIPE);
653 audit_pipe_count--;
654}
655
656/*
657 * Audit pipe clone routine -- provide specific requested audit pipe, or a

--- 472 unchanged lines hidden ---