鮭魚

@salmonii

Joined on Aug 16, 2023

  • 其他的研讀教材筆記請參考讀書會 我被分配到看程式碼 所以我會優先處理這部分 lkmpg 小記 ch1 Introduction Linux 核心模組是一段可以根據需要動態載入和卸載到核心中的程式碼。這些模組可以在不需要重新啟動的情況下加強核心的功能。 如果沒有模組,目前的方法通常是 monolithic kernels (單核),需要將新功能直接整合到核心映像中。這種方法會導致需要更大的核心,並且當需要新功能時,需要重建核心和隨後重新啟動系統。 ch4 HelloWorld 在 Makefile 中加入 PWD := $(CURDIR) 很重要
     Like  Bookmark
  • contributed by < salmoniscute > 開發環境 $ gcc --version gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ lscpu
     Like  Bookmark
  • contributed by < salmoniscute > Q1-1 兩個巨集 測試框架: my_assert(test, message) 參數 test 是一個 expression,為 true 才會通過測試。 參數 message 是當 test 為 false 時所回傳的字串。 my_run_test(test) 參數 test 是一個回傳 char * 的函式,當測試成功時回傳 NULL,失敗時回傳錯誤訊息字串。
     Like  Bookmark
  • 以下部分節錄自 研讀 list_sort + 論文 主角 Queue-mergesort:一種最壞情況下最優的 mergesort 變體。 merge sort 通常是排序鏈結串列的首選方法。它是一個典型的 divide-and-conquer 例子,並且有幾種變體: Top-down mergesort half-half rule $$\tau(n) = \lfloor n / 2 \rfloor$$ Bottom-up mergesort
     Like  Bookmark
  • contributed by < salmoniscute >
     Like  Bookmark