摘要: Gentoo之clocksource问题 如图,笔记本信息如下: 通过dmes信息查看后,发现系统在启动时,其中的clocksource未使用tsc,如下图为解决办法! 阅读全文
posted @ 2025-07-27 14:43 蟹蟹你哦 阅读(4) 评论(1) 推荐(0)
摘要: C语言通过void指针访问结构体的第一个成员 struct data { void *p1; void *p2; int x; }; int main(void) { int x = 0; int y = 99; struct data *data = (struct data*)malloc(si 阅读全文
posted @ 2025-03-26 16:14 蟹蟹你哦 阅读(47) 评论(0) 推荐(0)
摘要: DHCP设置静态IP 当我们使用virtualbox虚拟机,增加一个host-only模式的虚拟网卡时,往往因为系统内默认使用dhcp而导致ssh不能连接上一次的网卡IP地址。 DHCP如何设置静态IP地址? 如上图所示,显然DHCP也有配置文件可以做到设置静态IP的结果。 设置静态IP 增加/et 阅读全文
posted @ 2024-10-04 16:36 蟹蟹你哦 阅读(78) 评论(0) 推荐(0)
摘要: Bash 设置 vi mode bash shell在行模式编辑内容时,模式为emacs的操作模式 查看 readline 的 man 手册内容如下 $ man readline ... editing-mode (emacs) Controls whether readline begins wi 阅读全文
posted @ 2024-09-15 11:04 蟹蟹你哦 阅读(63) 评论(0) 推荐(0)