Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/devices/devices/20.html
Дата изменения: Thu Mar 23 12:37:19 2000
Дата индексирования: Wed Sep 15 04:21:31 2010
Кодировка:

Поисковые слова: star
memcpy error? The HyperNews Linux KHG Discussion Pages

Question: memcpy error?

Forum: Device Drivers
Keywords: memcpy verify_area
Date: Wed, 21 May 1997 14:33:34 GMT
From: Edgar Vonk <edgar@it.et.tudelft.nl>

I am using memcpy in a device driver to copy data between to buffers in kernel space (one is a DMA buffer) and I keep getting segmentation faults I can't explain.

I changed the driver since and now it copies the DMA buffer directly into user space with memcpy_tofs (and verify_area) and this seems to work just fine.

Anyone know why? Does this have to do with the memcpy faults under heavy system load? I saw a discussion and a kernel patch about this somewhere.

thanks,

(running i586-linux-2.0.30-RedHat4.1)