Subject: Re: CVS commit: syssrc/sys
To: None <sommerfeld@netbsd.org>
From: Jaromír <jdolecek@netbsd.org>
List: tech-kern
Date: 06/25/2001 22:12:44
Bill Sommerfeld wrote:
> > Log Message:
> > Add 'kernsa' parameter for sendit()/recvit(); if nonzero, msg->msg_name
> > is supposed to point directly to struct mbuf or struct sockaddr in kernel
> > space as appropriate, rather than being a pointer to memory in userland.
> > 
> > This is to be used by compat/* when emulation needs to wrap
> > send{to|msg}(2)/recv{from|msg}(2) and modify the passed struct
> > sockaddr.
> Who reviewed this change?

This change didn't seem like one needing review.

> this is what stack gap allocation is for!

Stack gap allocation is hack which should die. Primary reason is that
it's not MT-safe.
 
> Why are we slowing down our native syscall path for the convenience of
> emulations?

E.g. MSG_COMPAT handling costs more than this.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
NetBSD - just plain best OS! -=*=- Got spare MCA cards or docs? Hand me them!