Message-ID: Date: Thu, 17 Apr 2008 17:15:56 +0800 From: "Josh Zhao" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7685_28931241.1208423756931" References: Subject: [Xenomai-core] About Xenomai questions List-Id: "Xenomai life and development \(bug reports, patches, discussions\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org ------=_Part_7685_28931241.1208423756931 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_7685_28931241.1208423756931 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_7685_28931241.1208423756931--