2021年8月1日

ARMv8学习,如何得到当前Core的ID

摘要: 阅读全文

posted @ 2021-08-01 18:22 qwerhq 阅读(279) 评论(0) 推荐(0) 编辑

2019年11月16日

glib系列2 APP编译

摘要: 编译命令 gcc main.c `pkg-config --cflags glib-2.0 --libs glib-2.0` 头文件 $ ls /usr/local/include/glib-2.0/gio glib glib.h glib-object.h glib-unix.h gmodule. 阅读全文

posted @ 2019-11-16 15:32 qwerhq 阅读(271) 评论(0) 推荐(0) 编辑

glib系列1 编译

摘要: 1 安装 meson 最新glib 使用 meson进行构建,需要python3,首先下载meson, meson/meson.py 就是程序本身了,可以直接运行 git clone https://github.com/mesonbuild/meson.git apt install python 阅读全文

posted @ 2019-11-16 15:22 qwerhq 阅读(836) 评论(0) 推荐(0) 编辑

2019年6月2日

GstStaticCaps的初始化

摘要: struct _GstStaticCaps { /*< public >*/ GstCaps *caps; const char *string; /*< private >*/ gpointer _gst_reserved[GST_PADDING];}; #define GST_STATIC_CA 阅读全文

posted @ 2019-06-02 20:46 qwerhq 阅读(341) 评论(0) 推荐(0) 编辑

2018年7月20日

管道

摘要: https://segmentfault.com/a/1190000009528245 #include <stdio.h>#include <stdlib.h>#include <unistd.h> #define CUR_PATH_LEN 100#define CMD_LEN 10000 voi 阅读全文

posted @ 2018-07-20 00:43 qwerhq 阅读(98) 评论(0) 推荐(0) 编辑

2018年6月10日

linux程序设计--进程相关的各种ID

摘要: 1、调用exec函数时,目标可执行文件没有设定设置用户id。 2、调用exec函数时,目标可执行文件设定设置用户id。 阅读全文

posted @ 2018-06-10 17:20 qwerhq 阅读(164) 评论(0) 推荐(0) 编辑

2018年6月9日

xv6解析-- 多处理器操作

摘要: xv6可以运行多cpu的计算机上,这个os使用mycpu函数来标识初当前的cpu,使用struct cpu结构体来记录当前的CPU状态。使用cpus这些状态存放于cpus数组中,使用ncpu来标志cpu的个数。 以下函数主要功能是获取 运行当前代码的cpu对应的ID,然后通过这个ID在cpus数组中 阅读全文

posted @ 2018-06-09 11:28 qwerhq 阅读(1034) 评论(0) 推荐(0) 编辑

2018年6月6日

vim字符匹配

摘要: 按 : 这个符号进入命令模式后,可以对文本信息进行替换、删除等操作。 阅读全文

posted @ 2018-06-06 21:55 qwerhq 阅读(505) 评论(0) 推荐(0) 编辑

2017年11月15日

diy操作系统 附录:常用命令

摘要: ld -m elf_i386 as --32 gcc -m 16 o 阅读全文

posted @ 2017-11-15 14:26 qwerhq 阅读(132) 评论(0) 推荐(0) 编辑

diy操作系统 0:万事开头难

摘要: 许久之前就有写一个tiny的操作系统的打算,但时间和精力关系,想法一直没有成为最终的代码。操作系统的构建本身是个系统工程,门槛较高,需要多方面的知识,往往几行代码背后是厚厚的几本书才能说清的。之前为了写操作系统也是四处搜集资料,看了许多书,没有啥经验,花费了许多时间,到头来也没什么成果。因此,开个帖 阅读全文

posted @ 2017-11-15 12:40 qwerhq 阅读(306) 评论(0) 推荐(0) 编辑

导航