Home | History | Annotate | Download | only in kern

Lines Matching defs:ws

119 	struct writesegs_state ws;
225 ws.secoff = notestart + notesize;
226 ws.psections = psections;
227 ws.npsections = npsections - 1;
228 ws.p = l->l_proc;
230 (l->l_proc, ELFNAMEEND(coredump_getseghdrs), &ws), ENOSYS, error);
233 if (ws.npsections != 0) {
240 ws.psections->p_type = PT_NOTE;
241 ws.psections->p_offset = notestart;
242 ws.psections->p_vaddr = 0;
243 ws.psections->p_paddr = 0;
244 ws.psections->p_filesz = notesize;
245 ws.psections->p_memsz = 0;
246 ws.psections->p_flags = PF_R;
247 ws.psections->p_align = ELFROUNDSIZE;
306 struct writesegs_state *ws = us->cookie;
313 if (ws->npsections == 0)
315 ws->npsections--;
329 if ((error = copyin_proc(ws->p, (void *)end, buf, slen)) != 0) {
354 phdr.p_offset = ws->secoff;
368 ws->secoff += phdr.p_filesz;
369 *ws->psections++ = phdr;