<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109497</guid>
        <pubDate>Fri, 19 Jul 2002 12:53:12 +0000</pubDate>
        <title>printk</title>
        <link>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109497</link>
        <description><![CDATA[baton: Please pay your attention to first parameter of printk.<br>This is cut &amp; past from kernel.h file<br><br>#define KERN_EMERG &nbsp; &nbsp; &nbsp;&quot;&lt;0&gt;&quot; &nbsp; /* system is unusable &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */<br>#define KERN_ALERT &nbsp; &nbsp; &nbsp;&quot;&lt;1&gt;&quot; &nbsp; /* action must be taken immediately &nbsp; &nbsp; */<br>#define KERN_CRIT &nbsp; &nbsp; &nbsp; &quot;&lt;2&gt;&quot; &nbsp; /* critical conditions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/<br>#define KERN_ERR &nbsp; &nbsp; &nbsp; &nbsp;&quot;&lt;3&gt;&quot; &nbsp; /* error conditions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */<br>#define KERN_WARNING &nbsp; &nbsp;&quot;&lt;4&gt;&quot; &nbsp; /* warning conditions &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; */<br>#define KERN_NOTICE &nbsp; &nbsp; &quot;&lt;5&gt;&quot; &nbsp; /* normal but significant condition &nbsp; &nbsp; */<br>#define KERN_INFO &nbsp; &nbsp; &nbsp; &quot;&lt;6&gt;&quot; &nbsp; /* informational &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;*/<br>#define KERN_DEBUG &nbsp; &nbsp; &nbsp;&quot;&lt;7&gt;&quot; &nbsp; /* debug- */<br><br>If number is less then it has more priority for printing. Offten priority level stated from &lt;6&gt; and more are'n displayed, It depends on configuration. Just use high priority or change configuration you log daemon. And, of course, you can't use printk in your user-space application.<br>By the way, if you use xerm for start your module you have to make addition changes. I recomend you don't use X window when you work with kernel.]]></description>
        <author>baton</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109496</guid>
        <pubDate>Thu, 04 Jul 2002 20:21:51 +0000</pubDate>
        <title>printk</title>
        <link>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109496</link>
        <description><![CDATA[Kernel_Panic: А ты уверен, что эта функция описывается в файле linux/kernel.h? Это ведь компилятор говорит, что не знает такой функции? Поищи её в других включаемых файлах (я сам помочь не могу, т.к. у мя FreeBSD, а там куча функций ядра семейства *print*, и все работают :) ).]]></description>
        <author>Kernel_Panic</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109495</guid>
        <pubDate>Thu, 04 Jul 2002 14:54:57 +0000</pubDate>
        <title>printk</title>
        <link>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109495</link>
        <description><![CDATA[Butcher: Все началось именно с написания модулей ядра, но, когда я пытаюсь установить модуль, т.е. делаю insmod &lt;имя_модуля.о&gt;, то на экран никаких сообщений не выводилось, хотя это вроде бы должно происходить, поэтому я и решил попробовать написать простое приложение с использованием функции printk.]]></description>
        <author>Butcher</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109494</guid>
        <pubDate>Thu, 04 Jul 2002 14:15:35 +0000</pubDate>
        <title>printk</title>
        <link>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109494</link>
        <description><![CDATA[Devilray: Какой программы ? Вообще printk - это функция ядра и часто используется для отладки при написании модулей ядра (короче дрова). Если пишешь простую аппликуху, то юзай что-то вроде printf, fprintf, sprintf и т.д. и т.п. На скоко я знаю, printk не катит для аппликух, а в дровах работает нормально]]></description>
        <author>Devilray</author>
        <category>*nix</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109493</guid>
        <pubDate>Thu, 04 Jul 2002 13:11:21 +0000</pubDate>
        <title>printk</title>
        <link>https://forum.sources.ru/index.php?showtopic=12341&amp;view=findpost&amp;p=109493</link>
        <description><![CDATA[Butcher: При написании программы, возникла одна непонятная ситуация с функцией printk.<br>Компилятор не может найти эту функцию, хотя файл linux/kernel.h подключен.<br>Не подскажите ли, как справиться с этой проблемой.]]></description>
        <author>Butcher</author>
        <category>*nix</category>
      </item>
	
      </channel>
      </rss>
	