驱动开发
常用函数kmalloc 和 dev_kzalloc 分配内存kmalloc : 需要手动清理, 收到释放 ; 但是 dev_kzalloc可以自动管理内存devm系列的函数可以自动释放资源kzalloc : 分配需要初始化为零的内存块 module_platform_driver 和 platform_driver_register区别module_platform_driver 和 platform_driver_register 是 Linux 内核中用于注册平台驱动的两种不同方式。这两种方式都用于注册一个平台设备驱动程序,但在使用上有一些细微的区别。module_platform_driver : 不需要显示地调用注册函数(module_init module_exit)platform_driver_register : 需要显示地调用注册函数 设计器初始化允许在初始化结构体时显式指定某个字段的值。 .field_name = value, .field_name: 结构体的字段名。value: 要赋给该字段的值。 dma一般框架一个典型的 DMA...
petalinux
OSIOSI: Open System Interconnect (开放式系统互联)OSI参考模型 OSI七层模型 TCP/IP四层模型 TCP/IP协议族 应用层、表示层、会话层 应用层 HTTP, FTP, DNS, SMTP 传输层 传输层 TCP, UDP 网络层 网络层 IP, ICMP, ARP 数据链路层、物理层 网络接口层 Ethernet, Wi-Fi, PPP
petalinux
常用指令1 source /opt/pkg/petalinux/settings.sh2 cd workspace/petalinux/3 petalinux-create -t project –template zynqMP -n lark4 cd lark5 petalinux-config –get-hw-description ../../xsa_files/second/6 petalinux-config -c kernel7 petalinux-config -c rootfs8 petalinux-build9 petalinux-package –boot –fsbl –fpga –u-boot –force10 petalinux 2022.2...
zlog
pthreadpthread_key_create创建线程特定数据键 让每个键拥有自己独立的数据副本parame : pthread_key_t 函数指针 指向线程销毁时需要销毁资源的清理函数
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post$ hexo new "My New Post" More info: Writing Run server$ hexo server More info: Server Generate static files$ hexo generate More info: Generating Deploy to remote sites$ hexo deploy More info: Deployment