/dev/kmem read return value is double requested value

Alan Robinson alan.robinson at fujitsu-siemens.com
Mon Jun 2 23:50:57 PDT 2003


On Mon, Jun 02, 2003 at 02:51:56PM -0700, Marcel Moolenaar wrote:
> On Mon, Jun 02, 2003 at 01:31:12PM +0200, Alan Robinson wrote:
> > > 
> > > It helps if you demonstrate the behaviour with some trivial test program
> > > that people can run too.
> > > 
> > You are quite correct. I didn't even say the problem only seems to show
> > up when trying to read info from kld loaded drivers, an example. 
> 
> That's odd. And yes, that can't be right :-)
> 

It's a special offer, buy one byte get a second one free

> I'll take a look at it when I have a spare cycle.
> 
I compared the ia64/i386 mmrw() and another answer is to add 
a 'continue' after the /dev/kmem uiomove just like in i386.

I bet the 4 lines are still junk left over from a previous life
when the uiomove was a copyout?

Alan


More information about the freebsd-ia64 mailing list