Home | History | Annotate | Download | only in kern

Lines Matching defs:execsw

178 static const struct execsw	**execsw = NULL;
183 /* list of dynamically loaded execsw entries */
189 const struct execsw *ex_sw;
249 * Exec lock. Used to control access to execsw[] structures.
475 epp->ep_esch = execsw[i];
476 newerror = (*execsw[i]->es_makecmds)(l, epp);
628 * If no execsw entries are present, we load those likely to be needed
1811 * Add execsw[] entries.
1814 exec_add(struct execsw *esp, int count)
1861 /* update execsw[] */
1868 * Remove execsw[] entry.
1871 exec_remove(struct execsw *esp, int count)
1911 /* update execsw[] */
1926 const struct execsw **sw;
1971 * Create new execsw[]. Ensure we do not try a zero-sized
1974 sw = kmem_alloc(sz * sizeof(struct execsw *) + 1, KM_SLEEP);
1986 /* Replace old execsw[] and free used memory. */
1987 if (execsw != NULL) {
1988 kmem_free(__UNCONST(execsw),
1989 nexecs * sizeof(struct execsw *) + 1);
1991 execsw = sw;
1997 if (execsw[i]->es_hdrsz > exec_maxhdrsz)
1998 exec_maxhdrsz = execsw[i]->es_hdrsz;