Minix print from kernel to console

我的梦境 提交于 2019-12-11 12:59:04

问题


I am trying to change the scheduling in Minix and want to print from /kernel/proc.c to standard output. Printf cannot be used inside kernel. I am using Minix 3.1.2.

I want to add code to

sched()

function in order to print messages to console.

How can I do that?


回答1:


Call printk(const char *fmt, ...).



来源:https://stackoverflow.com/questions/10847666/minix-print-from-kernel-to-console

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!