# How legato framework create a kernel process from an application definition?

**URL:** https://forum.legato.io/t/how-legato-framework-create-a-kernel-process-from-an-application-definition/6103
**Category:** Legato Application Framework
**Created:** [February 9, 2022, 6:27am UTC](https://forum.legato.io/t/how-legato-framework-create-a-kernel-process-from-an-application-definition/6103 "2022-02-09T06:27:07Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 9, 2022, 6:27am UTC](https://forum.legato.io/t/how-legato-framework-create-a-kernel-process-from-an-application-definition/6103/1 "2022-02-09T06:27:07Z")

</div>

When I load my application to target and connect to ssh via usb interface and type list of available process:

$ps -aef

I can see a process name associated with my application defined in .adef. How Legato framework do this? As we know that all linux process is created from a system call fork(). So where and when this process is created?

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 9, 2022, 6:42am UTC](https://forum.legato.io/t/how-legato-framework-create-a-kernel-process-from-an-application-definition/6103/2 "2022-02-09T06:42:43Z")

</div>

probably you need to study here:

> **[legato-af/framework/liblegato/linux at master · legatoproject/legato-af](https://github.com/legatoproject/legato-af/tree/master/framework/liblegato/linux)**
>
> master/framework/liblegato/linux

---

<div class="post-metadata">

### Author: ![babang.parhusip](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@babang.parhusip](https://forum.legato.io/u/babang.parhusip)
#### Post date: [February 9, 2022, 11:28pm UTC](https://forum.legato.io/t/how-legato-framework-create-a-kernel-process-from-an-application-definition/6103/3 "2022-02-09T23:28:02Z")

</div>

Thank you @jyijyi , but still can’t fiure it out. In link you gave, the fork() is called in file process.c from a function le\_proc\_Execute(). However, I could not see in my application workspace anyone calling this function. Nor in platform code in ~/.leaf folder.

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)
#### Post date: [February 9, 2022, 11:58pm UTC](https://forum.legato.io/t/how-legato-framework-create-a-kernel-process-from-an-application-definition/6103/4 "2022-02-09T23:58:01Z")

</div>

Why do you need to know this?  
Do you encounter any problem with your app?
