- 博客(6)
- 收藏
- 关注
原创 linux 复制磁盘 dd
$ dd if=/dev/sda of=/dev/sdb bs=64Mif=FILE read from FILE instead of stdinof=FILE write to FILE instead of stdoutbs=BYTES read and write up to BYTES bytes at a time (default: 512); overrides ibs and obs ibs=BYT
2020-12-26 20:50:23 163
原创 如何在内核中读写仅提供物理地址的寄存器 ioremap
void __iomem *map_base=0; # __iomem is useless, just for scalability and flexibility.#if 1 printk(KERN_ERR "ioremap start\n"); map_base = ioremap_nocache(0x(physical address of registers base address), 0x1000(分配大小)); printk(KERN_ERR "ioremap base:
2020-12-19 23:34:07 291 1
原创 从skb结构中获取packet的ipv4地址
# this piece of code in the clean_rx_irq function#if 0# similar logic to the another article of mine (need a little adaption)--> [从skb结构中获取packet的mac地址](https://editor.csdn.net/md/?articleId=111411995)# use the %pI4 instead of %pM#endif e1000_r
2020-12-19 23:23:27 346 1
原创 从skb结构中获取packet的mac地址
#if 1 // mac src. this piece of code in the clean_rx_irq function. skb_reset_mac_header(skb); struct ethhdr *mh0 = eth_hdr(skb); printk(KERN_ERR "mac src: %pM, 0x%x, dest: %pM, 0x%x", mh0->h_source, *(unsigned int*) mh0->h_source, mh0->h
2020-12-19 23:15:30 903 1
原创 how to use multipass for ubuntu
# Launch an instance (by default you get the current Ubuntu LTS)multipass launch --name ubuntu-lts# Run commands in that instance, try running bash (logout or ctrl-d to quit)multipass exec ubuntu-lts -- lsb_release -a*********************************
2020-12-06 22:46:53 280
slavoj-zizek-the-sublime-object-of-ideology.pdf
2023-05-29
schelling-system-of-transcendental-idealismpdf-pdf-free.pdf
2023-05-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人