Re: Questions about mmap

From: Thiago Lacerda
Date: Tue Oct 07 2008 - 13:09:45 EST


Thank you people.

When I try to dereference those pointers in user space I get a segfault :(

On Tue, Oct 7, 2008 at 1:06 PM, Stefan Richter
<stefanr@xxxxxxxxxxxxxxxxx> wrote:
> Thiago Lacerda wrote:
>> I'm trying to do like this:
>>
>> //Code of the char device
>> unsigned int **test;
>> static int device_mmap(struct file *filp, struct vm_area_struct *vma) {
> [...]
>> could you tell me what am I doing wrong?
>
> I can't; I never implemented a mmap file operation myself.
> --
> Stefan Richter
> -=====-==--- =-=- --===
> http://arcgraph.de/sr/
>



--
Thiago de Barros Lacerda
Computer Science Undergraduate Student - CIn/UFPE - 2004.2
Researcher/Software Developer - GPRT - Networking and
Telecommunications Research Group
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/