会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
老胡同学
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2024年8月27日
shell
摘要: 1.shell解释器 Unix和Linux系统中,脚本第一行通常是一个shebang('#!'),用于指定解释器,这个代码告诉操作系统使用哪个解释器来执行脚本。如果指定的解释器不存在或者路径不正确,脚本将无法执行,并出现'not found'错误。 Bash脚本通常使用/bin/bash/ 而pyt
阅读全文
posted @ 2024-08-27 16:07 老胡同学
阅读(76)
评论(0)
推荐(0)
2024年7月18日
eMMC life time
摘要: 1.DEVICE_LIFE_TIME_EST_TYP_A 和DEVICE_LIFE_TIME_EST_TYP_B的区别 Device Health is similar to SMART features of modern hard disks, it provides only vital NA
阅读全文
posted @ 2024-07-18 14:12 老胡同学
阅读(602)
评论(0)
推荐(0)
2024年6月5日
C语言指针
摘要: 1.error: dereferencing 'void * pointer' >>这个错误表示你尝试解引用这个void *类型的指针,这是不允许的,必须指定它指向的数据类型。可以用类型转换。
阅读全文
posted @ 2024-06-05 17:40 老胡同学
阅读(53)
评论(0)
推荐(0)
2024年6月4日
linux系统编程
摘要: 如何在C程序执行linux shell command?system(), 最好是popen()http://simple-is-beauty.blogspot.com/2020/04/linuxsystem.html
阅读全文
posted @ 2024-06-04 10:00 老胡同学
阅读(31)
评论(0)
推荐(0)
2024年3月14日
如何保留git commit,但是将commit的改动全部还原?
摘要: 遇到一个问题,提交的一笔commit到gerrit review。但是发现需要将里面的大部分改动还原。手动还原不太现实。 如果是git reset会把commit也删掉,产生一个新的commit-id,导致gerrit上看到一个新的change-id。 想到了一个好的办法: 1.本地使用git re
阅读全文
posted @ 2024-03-14 16:31 老胡同学
阅读(171)
评论(0)
推荐(0)
2022年8月25日
repo
摘要: repo使用技巧 1.如何使用repo下载特定repo? >> 1.cd .repo/manifests/ 2.grep "name=" -nr 2.sync --foce-sync $(repo_name) 2.repo sync repo sync目的是将你的本地仓库和远程仓库同步,包含从远程仓
阅读全文
posted @ 2022-08-25 17:15 老胡同学
阅读(243)
评论(0)
推荐(0)
2022年7月20日
好用的tool
摘要: 1.performance [stressapptest] 内存压力测试之stressapptest 2.linux disk encryption https://blog.cloudflare.com/speeding-up-linux-disk-encryption/ 3.dmsetup dm
阅读全文
posted @ 2022-07-20 19:21 老胡同学
阅读(62)
评论(0)
推荐(0)
好书
摘要: https://douran.academy/wp-content/uploads/ebooks/linux-device-driver-development.pdf 》》Mastering linux device driver
阅读全文
posted @ 2022-07-20 14:13 老胡同学
阅读(66)
评论(0)
推荐(0)
2022年6月26日
eMMC V5.1
摘要: Terms and definition Address Space: Mapped Host Address Space: 主机能够通过read command访问的设备内区域 CID:Device Identification register MSB, LSB: Most Significan
阅读全文
posted @ 2022-06-26 17:16 老胡同学
阅读(673)
评论(0)
推荐(0)
2022年5月21日
深入理解linux内核--进程地址空间
摘要: 内核的函数以直接了当的方式获得动态内存:__get_free_pages()或alloc_pages()从分区页框中获得页框; kmem_cache_alloc()或kmalloc()使用slab分配器为专用或通用对象分配块。而vmalloc()或vmalloc32()获得一个非连续的内存区。这些函
阅读全文
posted @ 2022-05-21 15:27 老胡同学
阅读(179)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告