LinuxÉãÏñÍ·±à³ÌС½á
ת×Ô£ºhttp://blog.chinaunix.net/u/7547/showart_122619.html
1.open device:
video_dev = open("\dev\video0",O_RDWR));
2.get the information of the video device
struct video_capability video_cap;
memset(&video_cap,0,sizeof(video_cap));
if(ioctl(video_dev,VIDIOCGCAP,&video_cap) == -1)
{
perror("Cann't get the information of the video device");
close(video_dev);
exit(1);
}
3.get the information of the channels
struct video_channel video_chan;
memset(&video_chan,0,sizeof(video_chan));
for(channel = 0;channel < video_cap.channels;channel++)
{
video_chan.channel = channel;
if(ioctl(video_dev,VIDIOCGCHAN,&video_chan) == -1)
{
perror("Cann't get the information of the channels");
close(video_dev);
exit(3);
}
if(video_chan.type == VIDEO_TYPE_TV)
{
#ifdef DEBUG
printf("NO.%d channel is %s,type is tv!\n",channel,video_chan.name);
#endif
}
if(video_chan.type == VIDEO_TYPE_CAMERA)
Ïà¹ØÎĵµ£º
Grubfordos Òýµ¼linuxµÄ·½·¨
·½·¨Ò»
Errorcheck off
Configfile /menu.lst
Configfile /boot/grub/menu.lst
Configfile /grub/menu.lst
Find –set-root –ignore-floppies –ignore-cd /menu.lst
Configfile /menu.lst
Find –set-root –ignore-floppies –ignore-cd /root/grub/m ......
http://news.csdn.net/a/20091229/216149.html
Techradar£ºLinuxÑݱäµÄ15¸öÖØ´óÀï³Ì±®
2009-12-29 15:50 | 273´ÎÔĶÁ | À´Ô´£º»ª¾ü×ÊѶ ¡¾ÒÑÓÐ0ÌõÆÀÂÛ¡¿·¢±íÆÀÂÛ
¹Ø¼ü´Ê£ºLinux | ¸ÐлcarlkxiafhwfhwµÄÌṩ | ÊÕ²ØÕâÆªÐÂÎÅ
¾Ý¹úÍâýÌ屨µÀ£¬½üÈÕ£¬×ÊÑ¶ÍøÕ¾TechradarÁоÙÁ˽üÊ®ÄêÀ´LinuxÏ ......
GDB ¸ÅÊö
————
GDB ÊÇ GNU ¿ªÔ´×éÖ¯·¢²¼µÄÒ»¸öÇ¿´óµÄ UNIX ϵijÌÐòµ÷ÊÔ¹¤¾ß¡£»òÐí£¬¸÷λ±È½Ïϲ»¶ÄÇÖÖͼÐνçÃæ·½Ê½µÄ£¬Ïñ VC ¡¢ BCB µÈ IDE µÄµ÷ÊÔ£¬µ«Èç¹ûÄãÊÇÔÚ UNIX ƽ̨ÏÂ×öÈí¼þ£¬Äã»á·¢ÏÖ GDB Õâ¸öµ÷ÊÔ¹¤¾ßÓÐ±È VC ¡¢ BCB µÄͼÐλ¯µ÷ÊÔÆ÷¸üÇ¿´óµÄ¹¦ÄÜ¡£Ëùν “ ´çÓÐËù³¤£¬³ßÓÐËù¶Ì &rd ......
ÆÊÎöRedHat LinuxÖÐÈý¸öÖØÒªÄÚºËÎļþ
×÷Õߣºmynix À´Ô´:www.linux.org (2007-02-08 13:46:41)
¡¡ vmlinuxÊÇδѹËõµÄÄںˣ¬vmlinuzÊÇvmlinuxµÄѹËõÎļþ¡£zImage(vmlinuz)ºÍbzImage(vmlinuz)¶¼ÊÇÓÃgzipѹËõµÄ¡£ËüÃDz»½öÊÇÒ»¸öѹËõÎļþ£¬¶øÇÒÔÚÕâÁ½¸öÎļþµÄ¿ªÍ·²¿·ÖÄÚǶÓÐgzip½âѹËõ´úÂë¡£bzImageÖеÄbÊÇ&ldqu ......