asst3-Virtual Memory Translation/kern/syscall/runprogram.c
static
void
argbuf_cleanup(struct argbuf *buf)
{
	if (buf->data != NULL) {
		kfree(buf->data);
		buf->data = NULL;
	}
	buf->len = 0;
	buf->max = 0;
	buf->nargs = 0;
	if (buf->tooksem) {
		V(execthrottle);
		buf->tooksem = false;
	}
}
/*
 * Clean up an argv buffer when done.
 */
Clean up an argv buffer when done.
Clean up an argv buffer when done .
static
void
argbuf_cleanup(struct argbuf *buf)
{
	if (buf->data != NULL) {
		kfree(buf->data);
		buf->data = NULL;
	}
	buf->len = 0;
	buf->max = 0;
	buf->nargs = 0;
	if (buf->tooksem) {
		V(execthrottle);
		buf->tooksem = false;
	}
}
static void argbuf_cleanup ( struct argbuf * buf ) { if ( buf -> data != NULL ) { kfree ( buf -> data ) ; buf -> data = NULL ; } buf -> len = 0 ; buf -> max = 0 ; buf -> nargs = 0 ; if ( buf -> tooksem ) { V ( execthrottle ) ; buf -> tooksem = false ; } }
Clean up an argv buffer when done.
Clean up an argv buffer when done .