Kolja Waschk wrote: >> they will become two in the end), see below. Please check if it works >> for you. > > Aah, I was checking too hastily and missed a compile error. Sorry! > Actually, there's a typo in the get_unmapped_area (filp <-> file), and > it does _not_ work this way, unless the address to map is specified as > the offset when calling do_mmap: > > user_ptr = (void *)do_mmap(filp, (unsigned long)*pptr, len, prot, > MAP_SHARED, mmap_data->src_vaddr); > > Otherwise pptr will simply remain zero. Hmm, thought I got all paths. Such side effects indicate that this way is not a stable one. Ok, will try to find a better solution, but may take some time. Jan