Device Tree - Kernel Source Code 분석 (함수 Call Tree)


Device Tree - Kernel Source Code  분석 (함수 Call Tree)

本 글은 Deivce Tree를 Linux Kernel이 어떻게 Parsing하고 저장하는지에 관련된 글이다.이전 글에서 설명했듯이 .dts파일은 컴파일 후, HexFile로 생성된다.해당 HexFile을 Linux Kernel이 Parsing 하면 아래그림과 같이 Tree 구조를 가진다.Linux Source Code 흐름을 따라가보면 아래 그림과 같다. 위 그림에 대한 Text 추가 내용 : reserved mem 초기화 함수를 등록할 수 있다예를 들어 아래와 같이 사용한 경우RESERVEDMEM_OF_DECLARE를 통해서 __of_table_cma 이름의 of_device_id 구조체가 __reservedmem_of_table에 등록된다.디바이스명(compat)은 "shared-cma-pool"이다.이 디바이스의 초기화 함수는 rmem_cma_setup() 함..........



원문링크 : Device Tree - Kernel Source Code 분석 (함수 Call Tree)