리눅스 커널 모듈 개발을 위해 샘플 코드를 빌드하고 설치하려고 했는데 아래와 같은 에러가 발생했습니다.module hello_world: .gnu.linkonce.this_module section size must match the kernel's built struct module size at run time 구글링을 통해 여러 방법들 ( 리눅스 헤더 설치, build-essential 설치 등)을 시도해보다가해결방법을 찾아서 공유합니다. 해결방법해결방법은 리눅스 헤더 재설치였습니다. 아래와 같은 명령어를 사용합니다.sudo apt install --reinstall linux-headers-$(uname -r)샘플 리눅스 커널 모듈 소스hello_world.c#include #include #i..