Linux
-
[리눅스 커널] Timer - tick layerLinux/kernel 2023. 9. 28. 14:48
글의 참고 - https://github.com/torvalds/linux - https://blog.csdn.net/Roland_Sun/article/details/105667098?spm=1001.2014.3001.5502 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 아래에 표시했다. 글의 내용 - Overview : tick layer 는 주로 tick-broadcast 와 tick-sched 에서 자주 참조된다. tick-layer 는 하드웨어에 의존적인 `clock event device`를 추상화시키는 역할을 맡고있다. 그러나, clock event device 의 모든 기능을 추상화 시키지는 못하고, `register` 및 `power` 관련 기능들에 ..
-
[리눅스 커널] Timer - clock event deviceLinux/kernel 2023. 9. 25. 15:23
글의 참고 - https://docs.kernel.org/timers/timekeeping.html - https://blog.csdn.net/Roland_Sun/article/details/105564672 - http://www.wowotech.net/timer_subsystem/clock-event.html 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 아래에 표시했다. 글의 내용 - Overview : clock event framework 는 실제 timer interrupt 를 발생시키는 하드웨어 디바이스를 소프트웨어로 추상화시키는데 사용된다. 제조사에서 작성한 clock source driver 에서 clock event & clock source 프레임..
-
[리눅스 커널] LDM - kobj_type & sysfs & kernfsLinux/kernel 2023. 9. 23. 16:26
글의 참고 - https://blog.csdn.net/sinat_32960911/article/details/128382773 - https://zhuanlan.zhihu.com/p/531355852 - http://www.wowotech.net/device_model/dm_sysfs.html - https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b8441ed279bff09a0a5ddeacf8f4087d2fb424ca - https://blog.csdn.net/sinat_32960911/article/details/128582089 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 ..
-
[리눅스 커널] LDM - kobject, kset, ktypeLinux/kernel 2023. 9. 22. 01:08
글의 참고 - https://docs.kernel.org/core-api/kobject.html - https://www.cnblogs.com/schips/p/linux_device_model.html - http://www.wowotech.net/device_model/kobject.html - https://blog.csdn.net/lizuobin2/article/details/51523693 - http://books.gigatux.nl/mirror/kerneldevelopment/0672327201/ch17lev1sec1.html - https://embeddedbuddies555.wordpress.com/2020/04/12/kset-example-in-device-driver-module/ 글의..
-
[리눅스 커널] PM - Platform-dependent power managementLinux/kernel 2023. 9. 18. 20:03
글의 참고 - https://elinux.org/images/0/09/Elce11_pieralisi.pdf - https://zhuanlan.zhihu.com/p/542967530 - https://www.cnblogs.com/arnoldlu/p/6344847.html - https://www.thegoodpenguin.co.uk/blog/an-overview-of-psci/ - https://www.kernel.org/doc/Documentation/devicetree/bindings/arm/psci.txt - https://zhuanlan.zhihu.com/p/491107819 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 아래에 표시했다. 글의 내용 - Plat..
-
[리눅스 커널] PM - restart & shutdown & haltLinux/kernel 2023. 9. 18. 19:06
글의 참고 - Power Control System Architecture 2.1 - http://www.wowotech.net/pm_subsystem/reboot.html 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 아래에 표시했다. 글의 내용 - Overview " 리눅스 커널에서 restart 와 shutdown 은 reboot 시스템 콜을 실행할 수 있다. reboot 는 기본적으로 `shutdown + power-on` 의 조합으로 이루어진 절차다. 그러므로, reboot 가 가능하다면 shutdown 도 당연히 가능해야 한다. 결국, shutdown 프로세스는 reboot 프로세스의 하위 집합 프로세스라고 볼 수 있다. halt 는 아키텍처 독립적인 소프..
-
[리눅스 커널] Timer - Broadcast timerLinux/kernel 2023. 9. 17. 15:37
글의 참고 - https://lwn.net/Articles/574962/ - https://lwn.net/Articles/576925/ - https://0xax.gitbooks.io/linux-insides/content/Timers/linux-timers-3.html - https://blog.csdn.net/dachai/article/details/89876560 - http://www.wowotech.net/timer_subsystem/tick-broadcast-framework.html - http://www.wowotech.net/timer_subsystem/clock-event.html - https://blog.csdn.net/roland_sun/article/details/10657610..
-
[리눅스 커널] Cpuidle - idle processLinux/kernel 2023. 9. 12. 23:53
글의 참고 - https://www.weigao.cc/linux/kernel/idle.html#cpu-startup-entry - https://www.lmlphp.com/user/58023/article/item/787257/ - https://zhuanlan.zhihu.com/p/542475575 - https://www.cnblogs.com/0patrick/p/14198742.html - https://zhuanlan.zhihu.com/p/539722367 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는 항시 그림 아래에 표시했다. 글의 내용 - idle process : `idle process`는 PID가 0번인 프로세스로, 시스템이 초기화가 끝나는 시점에 자발적으로 `..