Skip to contentSkip to conversation

RTDM mmap and vm_operations

Xenomai-core Rodrigo Rosenfeld Rosas 2 participants 3 messages Mar 8, 2006 – Mar 9, 2006

lore
Share & tools
lore
#0 lore raw

Hi Jan,

Is there a way of knowing what was the src_addr or pptr data passed to rtdm_mmap_to_user without using the vm_private_data struct? I mean, can I obtain those information directly in the vma struct passed to the close handler? If so, I could pass a more generic struct to vm_private and use those information,making my life a bit easier... :)

Thanks in advance,

Rodrigo.

_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com

#1 lore raw
Quoted 8 lines · Rodrigo Rosenfeld Rosas

Hi Jan,

Is there a way of knowing what was the src_addr or pptr data passed to rtdm_mmap_to_user without using the vm_private_data struct? I mean, can I obtain those information directly in the vma struct passed to the close handler? If so, I could pass a more generic struct to vm_private and use those information,making my life a bit easier... :)

I do not see a clean, official way right now. It would definitely be something you have to obtain via vma_area_struct or something that's contained in it. The information is likely there - somewhere. But I doubt that obtaining it would make your code very portable across different kernel versions.

Jan

#2 lore raw

Jan Kiszka escreveu:

Quoted 4 lines
Quoted 2 lines · Rodrigo Rosenfeld Rosas

Hi Jan,

Quoted 9 lines
Quoted 2 lines

Is there a way of knowing what was the src_addr or pptr data passed to rtdm_mmap_to_user without using the vm_private_data struct? I mean, can I obtain those information directly in the vma struct passed to the close handler? If so, I could pass a more generic struct to vm_private and use those information,making my life a bit easier... :)

I do not see a clean, official way right now. It would definitely be something you have to obtain via vma_area_struct or something that's contained in it. The information is likely there - somewhere. But I doubt that obtaining it would make your code very portable across different kernel versions.

Ok, don't worry Jan. I was wondering if there was a portable easy way of obtaining those data, like a member of vma struct, but if not, there is no problem. I'll include these values in the private data struct.

Rodrigo.

_______________________________________________________
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador agora!
http://br.acesso.yahoo.com