dev_info() 启动过程、或者模块加载过程等“通知类的”信息等,一般只会通知一次,例如probe函数 dev_dbg() 一般使用在普通错误,如-EINVAL、-ENOMEM等errno发生处,用于调试 dev_err() 一般使用在严重错误,尤其是用户无法得到errno的地方,或者程序员不容易猜测系统哪里出了问题的地方 打印dev_dbg# A dynamic_debug#...
dev_err(dev, "IRQ%d error %d\n", xxxx_rtc_alarmno, ret); return ret; } return ret; } static void xxxx_rtc_release(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct rtc_device *rtc_dev = platform_get_drvdata(pdev); //do not clear AIE here,...
2 dev_err/dev_info/dev_warn 在Linux驱动代码中,有大量的调试信息,那么推荐使用dev_err/dev_info/dev_warn这一系列函数族。这一系列函数族定义在include/linux/device.h。 其实这些函数族本质上和下面printk.h中的定义也是完全一致的。 #definepr_emerg(fmt, ...) \ printk(KERN_EMERG pr_fmt(fmt), ##...
dev_err(dev,"non-prefetchable memory resource required\n"); err =-EINVAL; gotoout_release_res; } In my case, the device nodeflag happens to be IORESOURCE_BUS, so it falls into the "default"case of switch. Since the res_valid variable is initialized to zeroin the ...
+ if (!i2c_dev->tx_dma_desc) { + dev_err(i2c_dev->dev, "Not able to get desc for Tx\n"); + return -EIO; + } + /* Acquire the lock before posting the data to FIFO */ spin_lock_irqsave(&i2c_dev->xfer_lock, flags); ...
我们假设 app: open(“/dev/fb0”, …) 主设备号: 29, 次设备号: 0 //应用程序打开 /dev/fb0...
dev_re_load(dev); } /* * Reload device with a new receive buffer */ dev_re_load(dev) { mblk_t *bp; id = 0; /* begin with no waiting for buffers */ if ((bp = allocb(DEVBLKSZ, BPRI_MED)) == NULL) { cmn_err(CE_WARN,"dev:allocbfailure(size%d)\n", ...
-certfile < x509 > -noverify -out/dev/null 内核配置选项 CONFIG_MODULE_SIG:Module signature verification 如果开启了该选项,在内核在加载内核模块时,会对内核模块的签名进行检查。 默认情况下,在加载没有签名或者是签名不正确的内核模块时,内核仅仅是打印一条提示信息,比如: ...
dev_err(&csdev->dev, "couldn't find inport, parent: %s, child: %s\n", dev_name(&parent->dev), dev_name(&csdev->dev)); return 0; return -ENODEV; } static int coresight_find_link_outport(struct coresight_device *csdev) Expand All @@ -107,7 +107,7 @@ static int coresight...
The number of times that the Netdev watchdog was activated. suspend: N The number of times the driver performed a suspend operation. resume: N The number of times the driver performed a resume operation. wd_expired: N The number of times that the driver did not receive the keep-alive ev...