From: Michael.Back@astrum.de (Michael Back)
Subject: 2.4.7 copy_from_user
Date: Wed, 19 Sep 2001 07:05:54 GMT [thread overview]
Message-ID: <3ba84103.63307331@news.fth.sbs.de> (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
reply other threads:[~2001-09-19 7:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox