All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] RTDM mmap and vm_operations
@ 2006-03-08 18:58 Rodrigo Rosenfeld Rosas
  2006-03-08 19:41 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: Rodrigo Rosenfeld Rosas @ 2006-03-08 18:58 UTC (permalink / raw)
  To: xenomai-core

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-core] RTDM mmap and vm_operations
  2006-03-08 18:58 [Xenomai-core] RTDM mmap and vm_operations Rodrigo Rosenfeld Rosas
@ 2006-03-08 19:41 ` Jan Kiszka
  2006-03-09 14:36   ` Rodrigo Rosenfeld Rosas
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2006-03-08 19:41 UTC (permalink / raw)
  To: Rodrigo Rosenfeld Rosas; +Cc: xenomai-core

[-- Attachment #1: Type: text/plain, Size: 727 bytes --]

Rodrigo Rosenfeld Rosas wrote:
> 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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-core] RTDM mmap and vm_operations
  2006-03-08 19:41 ` Jan Kiszka
@ 2006-03-09 14:36   ` Rodrigo Rosenfeld Rosas
  0 siblings, 0 replies; 3+ messages in thread
From: Rodrigo Rosenfeld Rosas @ 2006-03-09 14:36 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core


Jan Kiszka escreveu:
> Rodrigo Rosenfeld Rosas wrote:
>   
>> 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.
>   
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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-09 14:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 18:58 [Xenomai-core] RTDM mmap and vm_operations Rodrigo Rosenfeld Rosas
2006-03-08 19:41 ` Jan Kiszka
2006-03-09 14:36   ` Rodrigo Rosenfeld Rosas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.