鮭魚

@salmonii

Joined on Aug 16, 2023

  • contributed by < salmoniscute > 研讀 kxo 在開始寫作業三之前,另外撰寫了一個筆記,主要是關於看程式碼的部分。 待整理 IXON 首先嘗試跑起來程式 在測試按下 Control-Q 結束遊戲的行為時,發現 terminal 並不會成功吃進去 Control-Q。 詢問 AI 工具後,嘗試在 raw_mode_enable 函式中加入:
     Like  Bookmark
  • contributed by < salmoniscute > 閱讀〈因為自動飲料機而延畢的那一年〉的啟發 研讀第 1 到第 6 週「課程教材」 閱讀筆記1 閱讀筆記2 問題 作業三 READ_ONCE 相關問題 希望投入的專案
     Like  Bookmark
  • contributed by < salmoniscute > 3-1 參考程式碼 解釋程式碼運作原理 Multi-Precision Integer, MPI 實作了處理大數的功能,超越了標準整數類型的大小限制。 typedef struct { uint32_t *data;
     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
  • lkmpg 小記 ch1 Introduction Linux 核心模組是一段可以根據需要動態載入和卸載到核心中的程式碼。這些模組可以在不需要重新啟動的情況下加強核心的功能。 如果沒有模組,目前的方法通常是 monolithic kernels (單核),需要將新功能直接整合到核心映像中。這種方法會導致需要更大的核心,並且當需要新功能時,需要重建核心和隨後重新啟動系統。 ch4 HelloWorld 在 Makefile 中加入 PWD := $(CURDIR) 很重要 因為 sudo 出於安全考慮會重置大部分的環境變數,包括 PWD 如果沒有這行程式碼,當執行 sudo make 時,Makefile 可能找不到正確的資料夾
     Like  Bookmark
  • contributed by < salmoniscute > 開發具體而微的 Linux 檔案系統 : HotMercury, jason50123 contribution: 讓 simplefs 支援 linux v6.8 journal 降低檔案系統因非預期斷電所受到的損害 提及未完成的部分
     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