Linux標頭檔

來源:互聯網
上載者:User

常用Linux標頭檔

 

 /* linux/drivers/sys-print.c<br /> * Author: Woodpecker <Pecker.Hu@gmail.com><br /> *<br /> * use sysfs to implement a Dynamic printk.<br /> *<br /> * This file is subject to the terms and conditions of the GNU General Public<br /> * License. See the file COPYING in the main directory of this archive for<br /> * more details.<br /> *<br /> */</p><p>#include <linux/module.h>/* MODULE_LICENSE */<br />#include <linux/kernel.h>/* printk,pr_info */<br />#include <linux/errno.h>/* EINVAL,EAGAIN,etc. */<br />#include <linux/err.h>/* IS_ERR */<br />#include <linux/init.h>/* module_init */<br />#include <linux/delay.h>/* mdelay,msleep */<br />#include <linux/hrtimer.h>/* hrtimer APIs */<br />#include <linux/time.h>/* struct timespec */<br />#include <linux/device.h>/* device_create */<br />#include <linux/fs.h>/* */<br />#include <linux/slab.h> /* kzalloc */</p><p>MODULE_AUTHOR("Woodpecker <Pecker.Hu@gmail.com>");<br />MODULE_DESCRIPTION("Dynamic print");<br />MODULE_LICENSE("GPL");

 

/* PAGE_SHIFT determines the page size */
#define PAGE_SHIFT  12
#define PAGE_SIZE  (_AC(1,UL) << PAGE_SHIFT)
#define PAGE_MASK  (~(PAGE_SIZE-1))  /* 0XFFFFF000 */

 

 

2010/09/08 Nanjing

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.