On 04/26/2017 04:59 PM, Johann Obermayr wrote: > Hallo, > > We are using Xenomai V2.6.4 (i know, this is a old version) >
Ok, so I won't mention that installing a mapping at a hard coded virtual address is a bad idea in most cases (especially if this is about sharing a piece of shared memory containing pointers between processes). > we are using rtdm_mmap_to_user to map a kmalloc memory to user space over > ioctl > > Is there a way to tell rtdm_mmap_to_user, that he use a default address. > > At mmap you can add a default address at the first parameter. > *pptr can be preset for this purpose. However, MAX_FIXED is not given to vm_mmap() internally by RTDM, so this value will always be considered as a mere hint, and the call won't fail if this address can't be used for the new mapping. -- Philippe. _______________________________________________ Xenomai mailing list [email protected] https://xenomai.org/mailman/listinfo/xenomai
