rust Rustownership Each value in Rust has an owner. There can only be one owner at a time. When the owner goes out of scope, the value will be dropped. 12let s1 = String::from("hello");let s2 2024-10-21 #rust
Intrusive Linked List 侵入式链表将链表的指针域放在数据结构中,而不是在链表节点中 适用于一个数据结构需要在多个链表中存在的情况 代码实现1234567891011121314151617181920212223struct ListNode { ListNode *next; explicit ListNode() : next(nullptr) {}};template 2024-10-10
books BooksCPP Programming Principlesand Practice Using C++ 3rd Edition Linux Linux System Programming Linux Kernel Development Understanding the Linux Kernel Architecture 2024-09-02
使用 vscode 调试 Linux 内核 使用 vscode 调试 Linux 内核 简单记录一下配置 vscode 从而调试 Linux 内核的过程,其中还有些疑惑 生成 Linux 内核配置文件首先生成 Linux 内核的配置文件,可以使用 make menuconfig 或者 make defconfig,这里使用 make menuconfig,然后将下述配置选项打开 1234567Kernel hacking ---> 2024-07-07 linux #vscode #linux