Lines Matching refs:pad
140 struct p_audit_data *pad; in audit_update_context() local
143 pad = P2A(p); in audit_update_context()
144 if (pad == NULL) { in audit_update_context()
151 if (pad->pad_flags & PAD_SETMASK) { in audit_update_context()
157 mutex_enter(&pad->pad_lock); in audit_update_context()
159 if (pad->pad_flags & PAD_SETMASK) { in audit_update_context()
162 mutex_exit(&pad->pad_lock); in audit_update_context()
171 ainfo->ai_mask = pad->pad_newmask; in audit_update_context()
175 pad->pad_flags &= ~PAD_SETMASK; in audit_update_context()
191 mutex_exit(&pad->pad_lock); in audit_update_context()
214 p_audit_data_t *pad; /* child process audit data */ in audit_newproc() local
217 pad = kmem_cache_alloc(au_pad_cache, KM_SLEEP); in audit_newproc()
219 P2A(cp) = pad; in audit_newproc()
237 pad->pad_data = opad->pad_data; /* copy parent's process audit data */ in audit_newproc()
238 au_pathhold(pad->pad_root); in audit_newproc()
239 au_pathhold(pad->pad_cwd); in audit_newproc()
286 p_audit_data_t *pad; in audit_pfree() local
288 pad = P2A(p); in audit_pfree()
291 ASSERT(pad != (p_audit_data_t *)0); in audit_pfree()
293 if (pad == pad0) { in audit_pfree()
298 au_pathrele(pad->pad_root); in audit_pfree()
299 au_pathrele(pad->pad_cwd); in audit_pfree()
306 kmem_cache_free(au_pad_cache, pad); in audit_pfree()