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.
474 epp->ep_esch = execsw[i];
475 newerror = (*execsw[i]->es_makecmds)(l, epp);
627 * If no execsw entries are present, we load those likely to be needed
1816 * Add execsw[] entries.
1819 exec_add(struct execsw *esp, int count)
1866 /* update execsw[] */
1873 * Remove execsw[] entry.
1876 exec_remove(struct execsw *esp, int count)
1916 /* update execsw[] */
1931 const struct execsw **sw;
1976 * Create new execsw[]. Ensure we do not try a zero-sized
1979 sw = kmem_alloc(sz * sizeof(struct execsw *) + 1, KM_SLEEP);
1991 /* Replace old execsw[] and free used memory. */
1992 if (execsw != NULL) {
1993 kmem_free(__UNCONST(execsw),
1994 nexecs * sizeof(struct execsw *) + 1);
1996 execsw = sw;
2002 if (execsw[i]->es_hdrsz > exec_maxhdrsz)
2003 exec_maxhdrsz = execsw[i]->es_hdrsz;