摘要:[ 55.732900] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 0000000095d22a08, val ffffffffc07aa525
阅读全文
摘要:添加 if(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(int))<0) { perror("setsockopt() reuse"); goto err1; } 添加SO_REUSEADDR之后 connect(): Can
阅读全文
摘要:sysctl -a | grep ipv6 | grep disable net.ipv6.conf.enahisic2i0.disable_ipv6 = 0net.ipv6.conf.enahisic2i0.disable_policy = 0net.ipv6.conf.enahisic2i1.d
阅读全文
摘要:interrupt cpu个数: 254 ``` lscpu Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian Address sizes: 43 bits physical, 48 bits
阅读全文
摘要:超时处理dev_watchdog 当watchdog发现网卡处于up状态并且发送队列处于停止时间大于5秒时将触发看门狗机制, dev_watchdog先找到停止的队列,然后调用igb_tx_timeout整个网卡队列做超时处理,igb_tx_timeout中对网卡做了DOWN、UP的操作。 stat
阅读全文
摘要:libc 内存管理原理探究 Linux 内存管理有三个层面,第一层是我们的用户管理层,比如我们自己程序的内存池,mysql 的 bufferpool,第二层是 C 的运行时库,这部分代码是对内核的一个包装,方便上层应用更方便的开发,再下一层就是我们的内核层了。 我们今天要重点介绍的就是中间那一层,这
阅读全文
摘要:cat /proc/6020/maps [root@bogon ~]# cat /proc/15660/maps | grep vdso ffff9c4b0000-ffff9c4c0000 r-xp 00000000 00:00 0 [vdso] [root@bogon ~]# ffff84d600
阅读全文
摘要:软中断 首先明确一个概念软中断(不是软件中断int n)。总来来说软中断就是内核在启动时为每一个内核创建了一个特殊的进程,这个进程会不停的poll检查是否有软中断需要执行,如果需要执行则调用注册的接口函数。所以软中断是运行在进程上下文的,而且可能并发执行在不同CPU上。所谓的软中断就是内核利用内核线
阅读全文
摘要:1.首先进入终端输入:sudo apt install mokutilsudo mokutil --disable-validation 2.再重启电脑reboot3.此时电脑重启,出现蓝屏,按任意键,出现四个选项:选择change secure boot stateContinue bootCha
阅读全文
摘要:https://github.com/wandercn/RTL8188GU ubuntu@ubuntux86:~$ cd RTL8188GU/8188gu-1.0.1 ubuntu@ubuntux86:~/RTL8188GU/8188gu-1.0.1$ make -j20 make ARCH=arm
阅读全文
摘要:只需删除文件夹 linux-5.4.77/drivers/pinctrl/intel并去掉 linux-5.4.77/drivers/pinctrl/Makefile 中如下的一行obj-$(CONFIG_X86) += intel/之后再次编译即可。 或者关闭config
阅读全文
摘要:root@zedboard-zynq7:~# /usr/xenomai/demo/altency /usr/xenomai/demo/altency: /lib/libgcc_s.so.1: version `GCC_3.5' not found (required by /usr/xenomai/
阅读全文
摘要:1.首先进入终端输入:sudo apt install mokutilsudo mokutil --disable-validation 2.再重启电脑reboot3.此时电脑重启,出现蓝屏,按任意键,出现四个选项:选择change secure boot stateContinue bootCha
阅读全文
摘要:检查/var/log/messages可以看到: Mar 7 22:38:41 exampleserver-1 kernel: NOHZ: local_softirq_pending 100 Mar 22 08:38:31 exampleserver-1 kernel: NOHZ: local_so
阅读全文
摘要:root@ubuntu:/share# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/5/lto-wrapper Target: aarch64-linu
阅读全文
摘要:[root@centos7 rtems]# ls ./build/arm/raspberrypi/testsuites/samples/ticker.bin ls: cannot access ./build/arm/raspberrypi/testsuites/samples/ticker.bin
阅读全文
摘要:There are two methods of receiving packets from the datalink layer under Linux. The original method, which is more widely available but less flexible,
阅读全文
摘要:当应用读取或写入未提交到物理内存的内存时,会发生页错误。 不可能(或很难)预测页面错误何时会发生,因此它们是计算机中不确定性的另一个来源。 幸运的是,有一个函数允许您提交进程使用的所有内存并将其锁定,这样它就不会导致页面错误。 它是mlockall(2)。 这是它的两面旗帜: MCL_CURRENT
阅读全文
摘要:如果你有精确的计时要求,那么计时器分辨率很重要,这是实时应用的典型要求。 Linux 中的默认计时器是以可配置的频率运行的时钟,对于嵌入式系统,通常为 100 Hz,对于服务器和台式机,通常为 250 Hz。 两个计时器滴答之间的间隔是,称为jiffy,在前面给出的例子中,在嵌入式 SoC 上是 1
阅读全文
摘要:spin_lock() 在Linux2.6中,spin_lock()宏有两种实现方式,一种是具有内核抢占的spin_lock(),一种是非抢占式内核中的spin_lock(),下面先看下自旋锁的数据结构,在Linux中,每个自旋锁都用spinlock_t结构表示,如下: typedef struct
阅读全文