Lines Matching defs:pem
85 struct linux_pemuldata *pem;
87 pem = p->p_emuldata;
89 return (pem);
122 struct linux_pemuldata *pem;
141 pem = malloc(sizeof(*pem), M_LINUX, M_WAITOK | M_ZERO);
142 sx_init(&pem->pem_sx, "lpemlk");
143 p->p_emuldata = pem;
165 pem = pem_find(p);
166 KASSERT(pem != NULL, ("proc_exit: proc emuldata not found.\n"));
167 pem->persona = 0;
168 if (pem->epoll != NULL) {
169 emd = pem->epoll;
170 pem->epoll = NULL;
180 struct linux_pemuldata *pem;
190 pem = pem_find(p);
191 if (pem == NULL)
197 if (pem->epoll != NULL) {
198 emd = pem->epoll;
199 pem->epoll = NULL;
203 sx_destroy(&pem->pem_sx);
204 free(pem, M_LINUX);
246 struct linux_pemuldata *pem;
274 pem = pem_find(p);
275 KASSERT(pem != NULL, ("proc_exec: proc pemuldata not found.\n"));
279 if (pem->epoll != NULL) {
280 emd = pem->epoll;
281 pem->epoll = NULL;
286 free(pem, M_LINUX);
297 struct linux_pemuldata *pem;
341 pem = pem_find(p);
342 pem->persona |= LINUX_READ_IMPLIES_EXEC;