For example you could look at arch/cris/drivers/examples/kiobuftest.c
:),
Nitin
-----Original Message-----
From: Alan Cox [mailto:alan@lxorguk.ukuu.org.uk]
Sent: Tuesday, August 07, 2001 4:31 PM
To: imran.badr@cavium.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: Exporting kernel memory to application
> I am in a situation where it is required to export a kernel memory
> (allocated by kmalloc in the device driver) to the user application. I
would
> really appreciate any guidance or suggestion.
Look at the sound drivers, they do this, although with memory allocated
by get_free_pages() - the rest of the theory is the same
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/