正在加载图片...
THE GOAL OF THE I/O SUBSYSTEM o Provide Uniform Interfaces,Despite Wide Range of Different Devices This code works on many different devices: int fd open (/dev/something"); for (int i=0;i<10;i++){ fprintf(fd,"Count &dn",i); } close(fd); Why?Because code that controls devices (device driver")implements standard interface. o We will try to get a flavor for what is involved in actually controlling devices in rest of lecture Can only scratch surface!THE GOAL OF THE I/O SUBSYSTEM  Provide Uniform Interfaces, Despite Wide Range of Different Devices  This code works on many different devices: int fd = open(“/dev/something”); for (int i = 0; i < 10; i++) { fprintf(fd,”Count %d\n”,i); } close(fd);  Why? Because code that controls devices (“device driver”) implements standard interface.  We will try to get a flavor for what is involved in actually controlling devices in rest of lecture  Can only scratch surface!
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有