HP-UX
1753873 회원
7159 온라인
108809 솔루션
새 메시지

동적 커널모듈 질문

 
?¤¿ø¿?
조언자

동적 커널모듈 질문

한가지 궁금한게 있어서 질문드립니다.



# kmadmin -s

Name ID Status Type

=====================================================

krm 1 UNLOADED WSIO

gvid_info 2 LOADED WSIO

drmfgl 3 UNLOADED Misc



현재 동적커널 모듈 상태는 위와 같습니다.



3개 커널 모두 loadable 설정이 되어 있고 boot시 자동 load 는 off



되어있습니다. sam에서 확인했습니다.



부팅시 동적모듈을 load시키는 게 /sbin/rc1.d/S112kminit 이라고



알고있는데 이 스크립을 자세히 보면 /etc/loadmods 에 등록되어있는



모듈을 보고 kmadmin -L 로 load 시키는데 현재 시스템에는 loadmods



파일이 존재하지가 않습니다. 그런데 어떻게 gvid_info 모듈이 load



되어있는 상태일까요?



c3000 11.11 입니다. 선배님들 조언 부탁드립니다.
5 응답 5
고광태
중학생

동적 커널모듈 질문

loadmod 가 파일형태로 되어있는 것이 아니라 커널에 존재하기때문입니다.



부팅시 자동로드는 off 되어있어야 합니다. on 되어있으면 장애가 발생합니다.



?¤¿ø¿?
조언자

동적 커널모듈 질문

답변 감사드립니다.



loadmod가 커널에 존재한다면 /etc/loadmods파일은 ignore 되는



겁니까? 어떤식으로 커널에 존재 하는지 궁금하네요.



시스템상에서 커널에 존재하는 loadmod 를 확인할 수 있는 방법이



있습니까? 어떻게 구성되고 어떤 내용을 포함하는지 알고 싶네요



언제나 친절한 답변 감사드립니다.
고광태
중학생

동적 커널모듈 질문

동적 커널모듈은 리부팅하지않고 필요에 따라서 셋팅할수있는 기능입니다.



아래와 같이 하면 되는데..질문의 답변이 되는지 모르겠네요~



파일은 배치처리를 위해서 필요한 것 같네요



아래 내용을 참조하시길..





Dynamic Build of Kernel at 11.0



If taking advantage of DLKM is desired when building a kernel, it is possible

to build just the specified loadable module dynamically, without needing to

rebuild and reboot the entire system. The following tools available at 11.0

are used to perform this operation:





kminstall install DLKM files

kmtune adjusts module tunable parameters

kmsystem modify module flags

mk_kernel generate a loadable module

kmupdate schedule the update to the files

kmadmin manage the loadable modules



These commands should be run in the following manner:



1. The kminstall(1M) command is used to properly distribute the object,

system, and master file of the module. These files will be copied to the

proper location from the current directory.



cd module_directory

kminstall -a module



2. The kmtune command for DKLM is the same as for a static kernel.



kmtune parameter=value



3. The kmsystem is used to change state flags, configurable (-c) and

loadable (-l), for the module.



kmsystem - y module_name



4. The kmupdate command updates the command immediately and synchronously (-M),

asynchronously (-a), or immediately only (-i).



mk_kernel -M module_name

kmupdate - module_name



5. The kmadmin command loads and unloads kernel modules from the running

kernel.



kmadmin - module_name



?¤¿ø¿?
조언자

동적 커널모듈 질문

답변 감사드립니다.



위의 내용은 dlkm build 과정인데 제가 묻고 싶은것은



loadble 옵션을 주고나서 시스템 리부팅시에 kminit이 dlkm모듈을



로드시키는데 참조하는 파일이 /etc/loadmods 라고 알고 있습니다.



default 모듈 krm 을 /etc/loadmods에 넣고 빼고 test해 보니



정상적으로 kminit 스크립에서 로드 시키고 안시키고 작동이 잘되는데



gvid_info란 모듈은 /etc/loadmods에 등록도 안되어있는데 load 되는



것인지 그게 궁금합니다.그래서 따로 동적인모듈을 load 시키는



다른 작동이 있는도 궁금합니다.



loadmod가 커널에 존재한다는 말씀은 loadmod sysem call 함수를



말씀하는것인지..



선배님들 조언 부탁 드리겠습니다.
고광태
중학생

동적 커널모듈 질문





아래는 driver module 을 deconfig 시키는 방법입니다.



# cd /stand/system.d

# kmsystem -c N drmfgl

# kmsystem -c N drmfglrx

# kmsystem -c N gvid_info

# kmsystem -c N gvid_him_fglrx

# kmsystem -c N gvid_him_cons



man kmsystem 을 통하여 자세한것을 알수가 있습니다.



참고하시기 바랍니다.