When the system is powered on, the kernel loads and starts services and applications as follows:
...
...
@@ -281,10 +281,11 @@ On each development board, you need to partition the memory to store the precedi
```
The key variables in the code are as follows:
**bus**: a string that saves the path of the bus connected to the current device.
**parent**: a string that stores the device path obtained from **syspath** in the uevent message.
**links**: a pointer to the memory that stores the soft link path.
**bootDevice**: a string that stores the value of **default_boot_device** in **bootargs**
- **bus**: a string that saves the path of the bus connected to the current device.
- **parent**: a string that stores the device path obtained from **syspath** in the uevent message.
- **links**: a pointer to the memory that stores the soft link path.
- **bootDevice**: a string that stores the value of **default_boot_device** in **bootargs**
According to the code, the corresponding soft link is created for the device only when the type of the connected bus is **platform**. The path of the soft link is as follows: