asst3-Virtual Memory Translation/kern/syscall/runprogram.c
static
int
argbuf_allocate(struct argbuf *buf, size_t size)
{
	buf->data = kmalloc(size);
	if (buf->data == NULL) {
		return ENOMEM;
	}
	buf->max = size;
	return 0;
}
/*
 * Allocate the memory for an argv buffer.
 */
Allocate the memory for an argv buffer.
Allocate the memory for an argv buffer .
static
int
argbuf_allocate(struct argbuf *buf, size_t size)
{
	buf->data = kmalloc(size);
	if (buf->data == NULL) {
		return ENOMEM;
	}
	buf->max = size;
	return 0;
}
static int argbuf_allocate ( struct argbuf * buf , size_t size ) { buf -> data = kmalloc ( size ) ; if ( buf -> data == NULL ) { return ENOMEM ; } buf -> max = size ; return 0 ; }
Allocate the memory for an argv buffer.
Allocate the memory for an argv buffer .