FreeBSD/sys/kern/kern_event.c
/*
 * Copy 'count' items from the list pointed to by uap->changelist.
 */
Copy 'count' items from the list pointed to by uap->changelist.
Copy ' count ' items from the list pointed to by uap - > changelist .
static int
kevent_copyin(void *arg, struct kevent *kevp, int count)
{
	struct kevent_args *uap;
	int error;
	KASSERT(count <= KQ_NEVENTS, ("count (%d) > KQ_NEVENTS", count));
	uap = (struct kevent_args *)arg;
	error = copyin(uap->changelist, kevp, count * sizeof *kevp);
	if (error == 0)
		uap->changelist += count;
	return (error);
}
static int kevent_copyin ( void * arg , struct kevent * kevp , int count ) { struct kevent_args * uap ; int error ; KASSERT ( count <= KQ_NEVENTS , ( " " , count ) ) ; uap = ( struct kevent_args * ) arg ; error = copyin ( uap -> changelist , kevp , count * sizeof * kevp ) ; if ( error == 0 ) uap -> changelist += count ; return ( error ) ; }
Copy 'count' items from the list pointed to by uap->changelist.
Copy ' count ' items from the list pointed to by uap - > changelist .