All of lore.kernel.org
 help / color / mirror / Atom feed
* several questions about porting latmus
@ 2021-02-01  4:36 Chen, Hongzhan
  2021-02-01  9:31 ` Philippe Gerum
  0 siblings, 1 reply; 11+ messages in thread
From: Chen, Hongzhan @ 2021-02-01  4:36 UTC (permalink / raw)
  To: xenomai@xenomai.org, Philippe Gerum

Hi Philippe

When I was trying to port latmus from evl to xenomai 3.2,  I met several issues that block porting
and need your suggestions.

1. When I tried to replace function evl_run_kthread_on_cpu of latmus.c driver ,  I found that only rtdm_task_init  
    can meet our requirements mostly  but we still cannot pass cpu affinity through it to pin task to required
    cpu. Do we need to implement new API so that we can  pass cpu affinity to pin task to required cpu but
    finish all functions  of rtdm_task_init?

2. Regarding replacement of evl_get_xbuf of latmus.c,  I would first call 
     rtdm_socket (AF_RTIPC, SOCK_DGRAM, IPCPROTO_XDDP); to create socket and then call rtdm_bind  to bind
     it to XDDP_PORT=xfd that passed from user space  after call rtdm_setsockopt to do corresponding operation like
      demo/posix/cobalt/xddp-stream.c.
     Of course , I would replace evl_write_xbuf with rtdm_sendto  and corresponding xbuf variable type in related 
     structure.  In addition , on userspace of latmus , I would  replace evl_create_xbuf with open ("/dev/rtp$xfd ",..) and then
     read by returned handler to get data from socket.  Is such design OK for you?
     Actually , I can not find any instance about rtdm_socket but description in doc/asciidoc/MIGRATION.adoc, I do not know
    If such design is feasible. Please comment.


Regards

Hongzhan Chen



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

end of thread, other threads:[~2021-02-10  6:57 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-01  4:36 several questions about porting latmus Chen, Hongzhan
2021-02-01  9:31 ` Philippe Gerum
2021-02-05  1:47   ` Chen, Hongzhan
2021-02-07 16:20     ` Philippe Gerum
2021-02-08  6:36       ` Chen, Hongzhan
2021-02-08  8:17         ` Philippe Gerum
2021-02-08 12:39           ` Chen, Hongzhan
2021-02-08 18:39             ` Philippe Gerum
2021-02-09  8:42               ` Chen, Hongzhan
2021-02-10  6:46                 ` Philippe Gerum
2021-02-10  6:57                   ` Chen, Hongzhan

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.