Files
Obsidian-Main/21.01. OS/21.01. Linux/modprobe 與 insmod 的差別.md
Awin Huang 1a181315d8 vault backup: 2025-11-24 15:12:58
Affected files:
21.01. OS/21.01. Linux/Replace custom build module driver.md
21.01. OS/21.01. Linux/modprobe 與 insmod 的差別.md
30. 工作 - Logitech/project - Lanky.md
2025-11-24 15:12:58 +08:00

16 lines
1.3 KiB
Markdown

---
tags:
aliases:
date: 2025-11-24
time: 15:08:20
description:
---
| **特性** | **modprobe** | **insmod** |
| -------- | -------------------------------------------------------------- | -------------------------------------------------- |
| **處理依賴** | **會**自動檢查並載入所有相依的模組(需要 `modules.dep` 檔案)。 | **不會**處理依賴。您必須手動依序載入所有相依的模組。 |
| **輸入參數** | 只需要模組名稱 (e.g., `tc956x_pcie_eth`)。 | 需要模組的完整檔案路徑 (e.g., `/path/to/tc956x_pcie_eth.ko`)。 |
| **檔案路徑** | 預設在標準路徑下尋找 (e.g., `/lib/modules/$(uname -r)/kernel/...`)。 | 必須明確指定路徑。 |
| **系統整合** | 會讀取設定檔 (`/etc/modprobe.d/*`) 來處理黑名單 (blacklist) 或設定別名 (alias)。 | 不會讀取設定檔,只負責載入檔案。 |
| **適用情境** | **標準系統操作、永久安裝驅動、處理複雜依賴。** | **測試單一模組、從非標準路徑載入。** |
# 參考來源