編譯kernel module - Linux

Heather avatar
By Heather
at 2015-11-21T13:20

Table of Contents

在linux kernel中有個KSM(kernel samepage merging)的feature

我想獨立將這個module編譯成.ko檔,可自行insmod

已經在menuconfig找到選項,但發現沒辦法修改成【M】

找出KSM的source code直接compile又出現一些error

想請問我這樣做是可行的嗎?

因為google上有些資訊說跟memory management有關的code不能編成loadable的module

但Redhat在paper上寫著"KSM is a linux kernel module"...



--
Tags: Linux

All Comments

Gary avatar
By Gary
at 2015-11-22T23:35
menuconfig 的時候按 "?" 看一下 dependency
Ivy avatar
By Ivy
at 2015-11-25T07:23
可能要 M 要整串 M 吧?
Kristin avatar
By Kristin
at 2015-11-29T22:27
Depends on : MMU [=y]...是不是悲劇了
Genevieve avatar
By Genevieve
at 2015-12-02T20:19
CONFIG_KSM 是 bool, 沒辦法編成 module 的

Debian(Jessie)-SLAPD TLS設定無法寫入

Kama avatar
By Kama
at 2015-11-20T20:45
※ 引述《BEEEEEEP (This Is Battle!)》之銘言: : 小弟我最近在熟悉SLAPD的功能 : 新手指南跟著跟著就卡關了 : 新手指南指示我將設定匯入伺服器 : 匯入指令: : ldapmodify -Y EXTERNAL -H ldapi:/// -f /Share/olcS.ldif ...

Debian(Jessie)-SLAPD TLS設定無法寫入

Edwina avatar
By Edwina
at 2015-11-20T15:55
小弟我最近在熟悉SLAPD的功能 新手指南跟著跟著就卡關了 新手指南指示我將設定匯入伺服器 匯入指令: ldapmodify -Y EXTERNAL -H ldapi:/// -f /Share/olcS.ldif 設定內容: dn: cn=config add: olcTLSCACertificate ...

國內旅遊住宿優惠補助

Hedy avatar
By Hedy
at 2015-11-20T13:43
觀光局 國內旅遊住宿優惠補助 申請網頁一直載不全,開出源碼來看, 發現*[1;33個資傳遞居然沒有加密m*[m,但為了一千還是衝了 先找出網址 $host coupon.taiwan.net.tw coupon.taiwan.net.tw has address 125.227.179.188 coupo ...

linux & windows 顯示網頁

Ina avatar
By Ina
at 2015-11-20T10:09
我的 gitlab server 是架在 ubuntu 12.04 Windows 連進去網頁顯示不完全(一直轉),且網業跑很慢(火狐),以前不會這樣 後來我用 VM 裡的 ubuntu 火狐可以顯示完整 這個可能是甚麼原因阿? MTU ? 我看 VM 裡的網路介面為 1500 window ...

inet的意思?

Zora avatar
By Zora
at 2015-11-20T10:05
各位同好先進好 請問在Linux裡的inet指的是什麼意思呢? inet在網路的設定的 iface eth0 inet static 或inetd 及網路相關的資訊裡很常出現 我想請教inet 這個字本身是什麼東西的縮寫嗎? (應該不會只有internet這麼簡單吧) 更具體 ...