Message-ID: Date: Tue, 15 Apr 2008 19:05:48 +0800 From: "Josh Zhao" MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2214_1098938.1208257548900" Subject: [Adeos-main] About Xenomai questions List-Id: General discussion about Adeos List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: adeos-main@gna.org ------=_Part_2214_1098938.1208257548900 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi , After reading Xenomai code, I have some questions: 1. usespace--> rt_task_create -->pthread_create-->__native_task_create So why xenomai use pthread to invoke __native_task_create ? 2. usespace-->rt_task_start(RT_TASK *task, void (*entry) (void *cookie), void *cookie)--> kernel space --> __rt_task_start(struct task_struct *curr, struct pt_regs *regs)--> rt_task_start(task, (void (*)(void *))__xn_reg_arg2(regs), (void *)__xn_reg_arg3(regs)); I can't understand that the entry paramter is address of function in user space ,why it can be passed into kernel space by syscall? 3. the xnthread_t struct and pod sechedule algorithm looks very complex, is there any papers taking about it? thanks very much!!!! ------=_Part_2214_1098938.1208257548900 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi ,
  After reading Xenomai code, I have some questions:
  1.    usespace--> rt_task_create  -->pthread_create-->__native_task_create
      So why xenomai use pthread  to invoke __native_task_create ?

   2.   usespace-->rt_task_start(RT_TASK *task, void (*entry) (void *cookie), void *cookie)-->
   kernel space --> __rt_task_start(struct task_struct *curr, struct pt_regs *regs)-->
rt_task_start(task,
                 (void (*)(void *))__xn_reg_arg2(regs),
                 (void *)__xn_reg_arg3(regs));


     I can't understand that the entry paramter is address of function in user space ,why it can be passed into kernel space by syscall?

3.   the xnthread_t struct and  pod  sechedule algorithm looks very complex, is there any papers taking about it?

thanks very much!!!!
   
------=_Part_2214_1098938.1208257548900--