![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
linux驱动开发
文章平均质量分 57
关于Linux通用的驱动开发的知识点
muzimuke
我本是卧龙岗散淡的人...
展开
-
输入子系统匹配过程之list_for_each_entry()函数分析
转载的文章:输入子系统匹配过程之list_for_each_entry()函数分析 重点: list_for_each_entry()宏函数分析:/** * list_for_each_entry - iterate over list of given type * @pos: the type * to use as a loop cursor. ...原创 2021-01-25 17:48:43 · 165 阅读 · 0 评论 -
IRQ中断以及tasklet的示例代码
drivers/crypto/atmel-sha.c IRQ中断以及tasklet的示例代码/* * Cryptographic API. * * Support for ATMEL SHA1/SHA256 HW acceleration. * * Copyright (c) 2012 Eukr茅a Electromatique - ATMEL * Author: Nicol...原创 2021-01-25 17:47:55 · 165 阅读 · 0 评论 -
Camera的热插拔-中断和sys_open
/* * MAXIM max9286-max96705 GMSL driver * * Copyright (C) 2015-2017 Cogent Embedded, Inc. * * This program is free software; you can redistribute it and/or modify it * under the terms of the...原创 2021-01-25 17:47:27 · 266 阅读 · 0 评论 -
U盘启动内核及挂载根文件系统方法
U盘分区及格式化: 1、 将u盘插入PC,在linux系统/dev/文件夹下找到u盘对应的设备文件,如sdb 2、 用fdisk指令将u盘分为2个区 fdisk /dev/sdb n //新建分区 p 1 //分区1 Enter键 //选择default +1G //设置分区大小为1GB n p 2 //分区2...原创 2021-01-25 17:47:03 · 374 阅读 · 0 评论 -
YUV各种格式所占的内存的大小总结
第一个像素的YUV值为:Y0 U0 V0第二个像素的YUV值为: Y1 U0 V0第三个像素的YUV值为: Y2 U1 V1意味着一个Y肯定对应一个像素点图片的大小定 义为:w * h,宽高分别为w和h一、YUV420格式先Y,后V,中间是U。其中的Y是w * h,U和V是w/2 * (h/2)如果w = 4,h = 2,则:yyyyyyyyuuvv内存则是:yyyyyyy...原创 2021-01-25 17:45:52 · 3053 阅读 · 0 评论 -
驱动void数据传递至应用层的修改
typedef struct { _Fdm_Driver *drv; /**< Pointer to the driver object to which this channel is created. */ ...原创 2021-01-25 17:43:10 · 104 阅读 · 0 评论 -
Linux内核动态模块的Makefile编写
如何编译Linux内核动态模块的Makefile原创 2020-04-29 18:01:48 · 211 阅读 · 0 评论 -
mydebug.h
put it in “include/linux” #include linux/mydebug.h&amp;amp;amp;gt;#define __MYDEBUG__#ifdef __MYDEBUG__ #define MYDEBUG(format,...) printk(&amp;amp;quot;File: &amp;amp;quot;__FILE__&amp;amp;quot;, Line: %05d: &am原创 2020-08-27 15:52:43 · 168 阅读 · 0 评论