drivers - modules versus compiled in?

Dan Malek dan at mvista.com
Fri Nov 2 04:48:20 EST 2001


Kevin B. Hendricks wrote:


> Are the allocated memory areas differnt?

Yes, this is usually why you may see different behavior.  First,
the module itself is allocated from kernel memory that other errant
pointers could access that wouldn't otherwise.  Usually, the problem
is related to buffers or data structures the driver allocates that
are further used for DMA operations.  Things like 'virt_to_bus()'
won't work on static objects in a module, while it will in a
compiled driver.

> Any hints as to what might have changed?

Provide some hints to us :-).  What type of system, what
kernel, what driver?

Thanks.


	-- Dan


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list