随笔分类 -  驱动内核

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页

驱动内核
摘要:winddk 7600 阅读全文

posted @ 2022-01-06 14:31 lydstory 阅读(92) 评论(0) 推荐(0)

摘要:malloc 阅读全文

posted @ 2022-01-05 13:34 lydstory 阅读(33) 评论(0) 推荐(0)

摘要:IoCompleteRequest函数表示调用方已完成所有I/O请求处理操作,并将给定的 IRP 返回给 I/O 管理器。 数原型 编辑 播报 VOID IoCompleteRequest( IN PIRP Irp, IN CCHAR PriorityBoost ); 参数 编辑 播报 Irp 指向 阅读全文

posted @ 2021-12-31 07:20 lydstory 阅读(99) 评论(0) 推荐(0)

摘要:ypedef struct _FILE_OBJECT { CSHORT Type; CSHORT Size; PDEVICE_OBJECT DeviceObject; PVPB Vpb; PVOID FsContext; PVOID FsContext2; PSECTION_OBJECT_POINT 阅读全文

posted @ 2021-12-31 07:05 lydstory 阅读(325) 评论(0) 推荐(0)

摘要:typedef struct DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT) _DEVICE_OBJECT { CSHORT Type; USHORT Size; LONG ReferenceCount; /*指向驱动程序中驱动对象的指针*/ struct _ 阅读全文

posted @ 2021-12-31 06:53 lydstory 阅读(460) 评论(0) 推荐(0)

摘要:#define RT_NULL ((void *)0) int main() { cout << sizeof(RT_NULL) << endl; cout << sizeof(NULL) << endl; system("PAUSE"); return 0; } 阅读全文

posted @ 2021-12-16 00:50 lydstory 阅读(120) 评论(0) 推荐(0)

摘要:// testip.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <string> #include <iostream> #include <stdio.h> using namespace std; #include <Windows. 阅读全文

posted @ 2021-12-15 22:38 lydstory 阅读(29) 评论(0) 推荐(0)

摘要:GT9XX for MTK 阅读全文

posted @ 2021-12-07 08:31 lydstory 阅读(42) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/fan380485838/article/details/92087194 scan_mounted_volumes(); 阅读全文

posted @ 2021-12-07 00:14 lydstory 阅读(167) 评论(0) 推荐(0)

摘要:最好是做过ddr flash 电池加电也是软件实现 阅读全文

posted @ 2021-12-01 10:41 lydstory 阅读(22) 评论(0) 推荐(0)

摘要:Hi3516A 海思 阅读全文

posted @ 2021-11-23 02:35 lydstory 阅读(16) 评论(0) 推荐(0)

摘要:YAFFS(Yet Another Flash File System)是由Aleph One公司所发展出来的NAND flash 嵌入式文件系统。 在YAFFS中,最小存储单位为一个页(Page),文件内的数据是存储在固定512 bytes的页中,每一页亦会有一个对应的16 bytes的Spare 阅读全文

posted @ 2021-11-23 02:15 lydstory 阅读(232) 评论(0) 推荐(0)

摘要:https://www.cnblogs.com/aaronLinux/p/5890924.html 阅读全文

posted @ 2021-01-12 12:09 lydstory 阅读(61) 评论(0) 推荐(0)

摘要:FlashPTR Linux字符设备注册函数 register_chrdev oremap将一个IO地址空间映射到内核的虚拟地址空间上去,便于访问。 阅读全文

posted @ 2021-01-12 11:02 lydstory 阅读(105) 评论(0) 推荐(0)

摘要:https://blog.csdn.net/zhoujiaxq/article/details/7646013 https://blog.csdn.net/weixin_42314225/article/details/81112217 阅读全文

posted @ 2021-01-12 02:36 lydstory 阅读(74) 评论(0) 推荐(0)

摘要:#include <linux/string.h> #include <linux/cdev.h> #include <linux/fs.h> #include <mach/gpio.h> //包含管脚操作的相关函数 #include <linux/device.h> //包含创建设备文件的相关函数 阅读全文

posted @ 2021-01-12 02:31 lydstory 阅读(99) 评论(0) 推荐(0)

摘要:kfree_skb()释放一个SKB的步骤: 1)kfree_skb()检测sk_buff结构的引用计数users,如果不为1,则说明此次释放后该SKB还将被用户占用, 因此递减引用计数users后即返回;否则说明不再有其他用户占用该sk_buff结构,调用__kfree_skb()释放之。 2)S 阅读全文

posted @ 2021-01-10 02:06 lydstory 阅读(781) 评论(0) 推荐(0)

摘要:#include <stdio.h> #include <string.h> #include <linux/kernel.h> #define sec_kmalloc(__size__) kmalloc((__size__), GFP_ATOMIC) int main() { printf("he 阅读全文

posted @ 2021-01-10 01:11 lydstory 阅读(77) 评论(0) 推荐(0)

摘要:内核层读写应用层文件,使用filp_open函数 在内核中使用有些系统调用(如打开,写文件等操作)需要使用get_fs,set_fs对他们进行保护。如:oldfs=get_fs(); 阅读全文

posted @ 2021-01-09 23:03 lydstory 阅读(1267) 评论(0) 推荐(0)

摘要:Make master thread emulator 创建主现成模拟器 阅读全文

posted @ 2021-01-08 08:17 lydstory 阅读(52) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页

导航