全部博文(1493)
发布时间:2013-08-31 01:28:41
1 三种机制主要API1.1 selectint select (int maxfdp1,fd_set *readset,fd_set *writeset, fd_set *exceptset,const struct timeval * timeout); //blocked some events occur, return -1 means error,0 means timeout, n means the num of fd with events occuring.void FD_ZERO (fd_set *fdset); // clear all.........【阅读全文】
发布时间:2013-08-31 01:20:21
介绍了几个设备驱动注册,注销函数:
register_chrdev_region(dev_t first ,unsigned int count ,char *name)
int alloc_chrdev_region(dev_t *dev ,unsigned int firstminor ,unsigned int count ,char *name);
int register_chrdev_region(dev_t from, unsigned count, const char *name)
void unregister_chrdev_region(dev_t from, unsigned count)
void unregister_chrdev(unsigned int major, const char *name)
......【阅读全文】