[Xenomai] rt_sem_create problem
rpm at xenomai.org
Thu Jun 26 14:07:33 CEST 2014
On 06/26/2014 11:49 AM, yogesh garg wrote:
> I want to protect my shared data structure in my kernel module. But when I
> trying to call rt_sem_create(), my module makes system hang. Without
> call my code works fine.
> Please help me whats the problem with rt_sem_create().
> RT_SEM mysem;
> ret = rt_sem_create(mysem,"dsem",1,S_PRIO);
> printk(" Return value of sem_create : %d \n",ret);
> ret value is success(0).
This is probably not your actual code, but rather some kind of
pseudo-code, so don't expect much insight. Except perhaps that you
should pay attention to the compiler warning such code must have produced.
More information about the Xenomai