Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* 2.4.7 copy_from_user
@ 2001-09-19  7:05 Michael Back
  0 siblings, 0 replies; only message in thread
From: Michael Back @ 2001-09-19  7:05 UTC (permalink / raw)


Hallo,
I try to write an device driver which copy data from userspace to
kernelspace. 

A userspace program allocate userspace, write data in this space and
give a referance to the device driver. In the device driver I try to
copy this data from userspace to Kernelspace with 
copy_from_user,

but sometime I get a Oops: can't get virtual address ...

But why ? I thought the function copy_from_user check the addresse,
and retrun with zero if the address is wrong ?
Additonal copy_from_user should be able to load paged virtual space.

I am sure that no race condition is the reason for the Oops !!

Is this effect a spezial problem of the alpha-kernel (I have a UP2000)

Thanks for help
Michael Back


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-09-19  7:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-19  7:05 2.4.7 copy_from_user Michael Back

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox