Kernel code question!

Forum related to ERIKA Enterprise and RT-Druid version 2

Moderator: paolo.gai

Locked
findfrienda

Kernel code question!

Post by findfrienda »

Hi, Dear all,

Can someone tell me the usage of some sub-directories in the kernel directory:

Code: Select all

      
          |_kernel
            |_as
            |_edf
            |_fp
            |_frsh
            |_oo
            |_rn
            |_sem
I don't konw the usage of each sub-directoies, and what's the meaning of edf,fp,frsh,oo,as.
Can give me some help?

Thanks!
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Kernel code question!

Post by paolo.gai »

Hi,

I started a quick Wiki page, please check http://erika.tuxfamily.org/wiki/index.p ... _internals

Ciao,

PJ
findfrienda

Re: Kernel code question!

Post by findfrienda »

Thanks very much!!!!!!!!!!!!!

The new wiki page is very very....useful!

Here is another question:

If we choose ERIKA as an OSEK OS, so, the oo directory is OK, wo needn't to care other directories;

If we want to expand to an autosar standard, we need to include the as directory.


This is my understanding, is it right?
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Kernel code question!

Post by paolo.gai »

> If we choose ERIKA as an OSEK OS, so, the oo directory is OK, wo needn't to care other directories;

yes, confirmed. just check the ee.h include file in pkg, which includes the various files.

> If we want to expand to an autosar standard, we need to include the as directory.

Not really. We do not implement (yet) all specifications of AUTOSAR OS. So the as directory contains the parts of AUTOSAR currently implemented. there is not that much yet.

PJ
findfrienda

Re: Kernel code question!

Post by findfrienda »

ok! Thanks!

Here is another two question:

1).What's the usage of directory com?
Does it mean communication method? If so, what the difference between them and the IPCs (such as sem & event in oo)?

2).In the kernel,
sem--semaphore implementation used by FP, EDF, FRSH
So, I think sem isnot for oo, but for FP,EDF & FRSH. Beacuse in the os I found the implementation of sem and event in oo.
Is it right?

Thanks!
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Kernel code question!

Post by paolo.gai »

findfrienda wrote: 1).What's the usage of directory com?
Does it mean communication method? If so, what the difference between them and the IPCs (such as sem & event in oo)?
it contains the OSEK COM (as well as a CABS implementation...)
findfrienda wrote: 2).In the kernel,
sem--semaphore implementation used by FP, EDF, FRSH
So, I think sem isnot for oo, but for FP,EDF & FRSH. Beacuse in the os I found the implementation of sem and event in oo.
Is it right?
Yes!
PJ
Locked