12 2016 档案

摘要:如果变量类型是 , 使用 prink 的格式说明符 : int %d 或者 %x( 注: %d 是十进制, %x 是十六进制 ) unsigned int %u 或者 %x long %ld 或者 %lx unsigned long %lu 或者 %lx long long %lld 或者 %llx 阅读全文
posted @ 2016-12-21 13:47 星星stars 阅读(3772) 评论(0) 推荐(1)
摘要:/* * The pci_dev structure is used to describe PCI devices. */ struct pci_dev { struct list_head bus_list;/* node in per-bus list */ struct pci_bus *bus;/* bus this device is on */ struct... 阅读全文
posted @ 2016-12-21 10:10 星星stars 阅读(4773) 评论(0) 推荐(0)
摘要:1 Ctrl+Alt+T 打开终端。 Ctrl+Alt+T 打开终端。 2 输入sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf 3 在弹出的编辑框里输入:greeter-show-manual-login=true 保存关闭。 阅读全文
posted @ 2016-12-12 13:20 星星stars 阅读(167) 评论(0) 推荐(0)
摘要:创建一个套接口()。 #include <sys/socket.h> int socket( int af, int type, int protocol); af:一个地址描述。目前仅支持AF_INET格式,也就是说ARPA Internet地址格式。 type:指定socket类型。新套接口的类 阅读全文
posted @ 2016-12-12 10:26 星星stars 阅读(209) 评论(0) 推荐(0)
摘要:s3c2410_gpio_setpin()-向某个引脚进行输出 阅读全文
posted @ 2016-12-07 17:26 星星stars 阅读(285) 评论(0) 推荐(0)
摘要:1 /* interrupt.h */ 2 #ifndef _LINUX_INTERRUPT_H 3 #define _LINUX_INTERRUPT_H 4 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include... 阅读全文
posted @ 2016-12-07 17:03 星星stars 阅读(1628) 评论(0) 推荐(0)
摘要:#ifndef _LINUX_CDEV_H #define _LINUX_CDEV_H #include #include struct file_operations; struct inode; struct module; struct cdev { struct kobject kobj; struct module *owner; const stru... 阅读全文
posted @ 2016-12-07 16:15 星星stars 阅读(552) 评论(0) 推荐(0)