-
use shell to push to main
use shell to push to git123456789$cat push_to_main.shcurrent_date=$(date +"%Y-%m-%d")arg=$1commitment=${curren... -
Run Vitis AI Examples on KV260
Use board image provided by XilinxQuick Start Guide for Zynq™ UltraScale+™ Vitis-AI/setup/mpsoc/README To improve the user ex... -
Typora+PicGo+Github to make image hosting easier
IntroduceThis article introduces the process of using Typora and PicGo to edit Markdown documents and upload images to GitHub... -
Device Tree Memo
Device tree allows the operating system or bootloader to know things like: this system-on-chip has: 2 Cortex-A9 CPU cores 2... -
Linux-PCI网络设备驱动
Linux-PCI网络设备驱动1, 驱动模块的加载和卸载 如果网络设备(包括wireless)是PCI规范的,则先是向内核注册该PCI设备(pci_register_driver),然后由pci_driver数据结构中的probe函数指针所指... -
Linux-基本原子操作 atomic
原子操作主要用于实现资源计数,很多引用计数(refcnt)就是通过原子操作实现的。原子类型定义如下: 12345typedef struct { volatile int counter; } atomic_t; vola... -
Linux中断子系统笔记
在linux kernel中,对于每一个外设的IRQ都用struct irq_desc来描述,我们称之中断描述符(struct irq_desc)。 linux kernel中会有一个数据结构保存了关于所有IRQ的中断描述符信息,我们称之中断描述符D... -
Linux-中断上下部分(top half、bottom half)
问题:linux系统中对中断的处理为什么会有上下部之分呢? 中断处理程序处于中断上下文,而中断上下文是不参与调度的,这样中断上下文不能出现可能休眠的操作,因为中断上下文一旦休眠就会交出cpu,而中断上下文不参与调度,也就是交出cpu时不会保存上下文,... -
Linux-自旋锁与互斥锁
自旋锁和互斥锁的区别POSIX threads(简称Pthreads)是在多核平台上进行并行编程的一套API。线程同步是并行编程中非常重要的通讯手段,其中最典型的应用就是用Pthreads提供的锁机制(lock)来对多个线程之间的共享临界区(Crit... -
Linux-create a countdown timer thread
Linux create a countdown timer threadCreate an independent countdown timer thread, the program ends automatically when the co...
Happiness is a dancing dog.