亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? cooking.c

?? Linux下的系統(tǒng)信息獲取
?? C
?? 第 1 頁 / 共 5 頁
字號(hào):
/* Copyright (C) 2001-2001 Fujitsu Siemens Computers   Joachim Braeuer   This file is part of smbios   smbios is free software; you can redistribute it and/or modify it   under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2 of the License,   or (at your option) any later version.   smbios is distributed in the hope that it will be useful, but WITHOUT   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   for more details.   You should have received a copy of the GNU General Public License   along with smbios; see the file COPYING. If not, write to the   Free Software Foundation, Inc., 59 Temple Place - Suite 330,   Boston, MA 02111-1307, USA.*//* $Log: cooking.c,v $/* Revision 1.1  2001/09/15 14:52:43  bretthauert/* initial release/* *//** \file cooking.c *  DMI-BIOS and SM-BIOS interpreting (cooking) functions *  The functions defined in this file generate a human readable output of the *  raw binary DMI- and SM-BIOS types. However, every time the specification of *  DMI- and SM-BIOS (types) change, these changes have to be adopted in these *  routines, too. *   *  \author Thomas Bretthauer *  \author Joachim Braeuer *  \version 0.1 *  \date January 2001 */#ifndef __KERNEL__#  define __KERNEL__#endif#ifndef MODULE#  define MODULE#endif#define __NO_VERSION__		/* don't define kernel_version in module.h */#include <linux/module.h>#include <linux/kernel.h>	/* ... for 'printk()' */#include <linux/errno.h>	/* ... error codes */#include <linux/types.h>	/* ... fixed size types definitions, '__u8'... */#include <linux/proc_fs.h>  /* ... /proc file system ... */#include <linux/string.h>	/* ... for 'memcpy()', 'strncmp()' */#include "strgdef.h"        /* human readable output string definitions for directories,                             * files and file contents                             */#include "bios.h"		    /* ... local declarations for DMI-, SM-BIOS */#include "cooking.h"	    /* ... local declarations for interpreting DMI- and SM-BIOS types */EXPORT_NO_SYMBOLS;/** \fn unsigned char * bios_cook (smbios_struct *smbiosstruct, unsigned int * plength)  * \brief huge switch that calls the cooking functions for every SMBIOS structure  * \param smbiosstruct pointer to SMBIOS raw structure  * \param plength amount of memory allocated by functions called from this function  * \return pointer to string that holds the interpreted data  *  * this function gets a raw SMBIOS structure. it calls the appropriate cooking function  * whitch interpretes the raw data and builds a string with the interpreted data.  * the caller is responsible to free the memory allocated by the "sub"-functions.  *  * \author Joachim Braeuer  * \date March 2001  */unsigned char *bios_cook (smbios_struct *smbiosstruct, unsigned int * plength){	unsigned char *scratch = NULL;      /* pointer that holds the interpreded data */	/* do we have a valid SMBIOS? */	if ( !smbiosstruct )	   return NULL;	/* switch between the different smbios types to interpret and call the appropriate	 * cook function.	 */	switch (smbiosstruct->type)	{        case 0:	        scratch = bios_cook_type_0 (smbiosstruct, plength);	        break;	    case 1:	        scratch = bios_cook_type_1 (smbiosstruct, plength);	        break;	    case 2:	        scratch = bios_cook_type_2 (smbiosstruct, plength);	        break;	    case 3:	        scratch = bios_cook_type_3 (smbiosstruct, plength);	        break;	    case 4:	        scratch = bios_cook_type_4 (smbiosstruct, plength);	        break;	    case 5:	        scratch = bios_cook_type_5 (smbiosstruct, plength);	        break;	    case 6:	        scratch = bios_cook_type_6 (smbiosstruct, plength);	        break;	    case 7:	        scratch = bios_cook_type_7 (smbiosstruct, plength);	        break;	    case 8:		        scratch = bios_cook_type_8 (smbiosstruct, plength);		        break;		    case 9:		        scratch = bios_cook_type_9 (smbiosstruct, plength);		        break;	    case 10:		        scratch = bios_cook_type_10 (smbiosstruct, plength);		        break;		    case 11:		        scratch = bios_cook_type_11 (smbiosstruct, plength);		        break;	    case 12:		        scratch = bios_cook_type_12 (smbiosstruct, plength);		        break;    		    case 13:		        scratch = bios_cook_type_13 (smbiosstruct, plength);		        break;	    case 16:		        scratch = bios_cook_type_16 (smbiosstruct, plength);		        break;	    case 17:		        scratch = bios_cook_type_17 (smbiosstruct, plength);		        break;	    case 19:		        scratch = bios_cook_type_19 (smbiosstruct, plength);		        break;	    case 20:		        scratch = bios_cook_type_20 (smbiosstruct, plength);		        break;	    case 32:		        scratch = bios_cook_type_32 (smbiosstruct, plength);		        break;	    case 127:		        scratch = bios_cook_type_127 (smbiosstruct, plength);		        break;        				/* if it's none of the supported types, just display the standard		 * DMI header */	    default:	        {                unsigned char line[512];                unsigned char line_type[128];     /* type */                unsigned char line_length[128];   /* length */                unsigned char line_handle[128];   /* handle */                unsigned char line_text[128];     /* not supported message */                /* prepare type, length, handle and not supported message */                sprintf (line_type, "%20s : %d\n", TYPE, smbiosstruct->type);                sprintf (line_length, "%20s : %d %s\n", LENGTH, smbiosstruct->length, BYTES);                sprintf (line_handle, "%20s : %d\n", HANDLE, smbiosstruct->handle);	            sprintf (line_text, "\n%s\n\n", NOT_SUPPORTED);                sprintf (line, "%s%s%s%s", line_type, line_length, line_handle, line_text);                *plength = strlen (line);                /* allocate memory ... */                scratch = kmalloc (*plength+1, GFP_BUFFER);                if (scratch == NULL)                {                    *plength = 0;                    return NULL;                }	                /* ... and copy the string */                memcpy (scratch, line, *plength);            }	} /* end switch */		/* return a string with all the interpreted data for the given raw structure */	/* the caller is responsible to free the memory. */	return scratch;}/** \fn unsigned char * bios_cook_type_0 (smbios_struct *smbiosstruct, unsigned int * plength)  * \brief writes interpreted SMBIOS Type 0 data to a /proc file  * \param smbiosstruct pointer to SMBIOS Type 0 raw structure  * \param plength amount of memory allocated by this function  * \return pointer to string that holds the interpreted data  *  * this function gets a raw SMBIOS Type 0 (Bios) structure. it  * interpretes the raw data and builds a string with the interpreted  * data. this is the return value of this structure. the caller is  * responsible to free the allocated memory.  *  * \author Joachim Braeuer  * \date March 2001  */unsigned char *bios_cook_type_0 (smbios_struct * smbiosstruct, unsigned int * plength){	smbios_type_0 *type0;    unsigned char * scratch;	/* contains the full block of interpreted data */    /* on some systems the system crashed if the stack (local variables) */    /* is bigger than one pages (4k). since linux needs some space in this */    /* page the variables should never exceed 3kB. */	unsigned char file[2800];	/* contains one line of the above file */    unsigned char line[128];    /* cast raw data to type 0 structure */    type0 = (smbios_type_0 *)smbiosstruct;    /* prepare header string */    sprintf (line, "%-35s%s %d %s\n", TYPE, SEP1, smbiosstruct->type, TYPE0_NAME);    strcpy(file, line);	sprintf (line, "%-35s%s %d %s\n", LENGTH, SEP1, smbiosstruct->length, BYTES);	strcat(file, line);	sprintf (line, "%-35s%s %d\n\n", HANDLE, SEP1, smbiosstruct->handle);	strcat(file, line);	/* prepare strings with type 0 information */	sprintf (line, "%-35s%s %s\n", TYPE0_VENDOR, SEP1, GetString(smbiosstruct, (unsigned int)(type0->vendor)));	strcat(file, line);	sprintf (line, "%-35s%s %s\n", TYPE0_VERSION, SEP1, GetString(smbiosstruct, (unsigned int)(type0->version)));	strcat(file, line);	sprintf (line, "%-35s%s %X\n", TYPE0_ADR_SEG, SEP1, type0->startaddr);	strcat(file, line);	sprintf (line, "%-35s%s %s\n", TYPE0_REL_DATE, SEP1, GetString(smbiosstruct, (unsigned int)(type0->reldate)));	strcat(file, line);	sprintf (line, "%-35s%s %d kB\n", TYPE0_ROM_SIZE, SEP1, ((type0->romsize)+1) * 64);	strcat(file, line);	    /* bios characteristics interpretation */    sprintf(line, "%-35s%s\n", TYPE0_CHAR, SEP1);    strcat(file, line);    if( (type0->characteristics) & 0x0000000000000001 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_RES);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000002 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_RES);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000004 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_UNKNOWN);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000008 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_NOTSUP);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000010 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_ISA);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000020 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_MCA);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000040 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_EISA);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000080 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_PCI);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000100 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_PCMCIA);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000200 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_PNP);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000400 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_APM);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000000800 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_FLASH);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000001000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_SHADOWING);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000002000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_VL);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000004000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_ESCD);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000008000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_BOOTCD);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000010000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_SELBOOT);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000020000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_BIOS_IS_SOCKETED);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000040000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_PCMCIA_BOOT);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000080000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_ENH_DISK_DRIVE);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000100000 )    {        sprintf(line, "%-35s  %s %s \n", "", SEP2, TYPE0_CHAR_FD_NEC);        strcat(file, line);    }    if( (type0->characteristics) & 0x0000000000200000 )

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美日韩精品在线| 欧美日韩精品免费观看视频| 亚洲精选一二三| 日韩欧美在线1卡| av高清不卡在线| 久久97超碰色| 夜色激情一区二区| 亚洲国产高清不卡| 日韩美女一区二区三区四区| 91天堂素人约啪| 国产一区二区三区久久悠悠色av| 亚洲国产另类av| 国产精品免费久久久久| 精品国产免费人成在线观看| 欧美熟乱第一页| 91在线精品一区二区三区| 韩国一区二区在线观看| 日韩中文字幕亚洲一区二区va在线| 国产精品久久久久三级| 久久精品亚洲精品国产欧美| 欧美一区二区三区免费大片| 欧美丝袜丝nylons| 91激情在线视频| 91免费视频网| 精一区二区三区| 久久久久久影视| 蜜桃精品视频在线| 欧美日韩亚洲另类| 色综合久久久久久久| 成人小视频在线观看| 国产精一区二区三区| 老司机精品视频线观看86| 日本视频中文字幕一区二区三区| 亚洲午夜久久久| 亚洲高清免费一级二级三级| 最新日韩在线视频| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产午夜精品福利| 欧美国产精品v| 国产日韩精品一区二区浪潮av| 欧美精品一区二区精品网| 精品捆绑美女sm三区| 日韩欧美激情在线| 日韩欧美亚洲国产另类| 欧美大片在线观看| 欧美大胆人体bbbb| 精品国产91久久久久久久妲己| 久久成人免费电影| 国产亚洲成av人在线观看导航| 日韩午夜电影av| 久久网站热最新地址| 久久综合久久综合久久综合| 久久女同互慰一区二区三区| 国产网站一区二区| 国产精品乱码一区二三区小蝌蚪| 国产精品乱码一区二区三区软件| 国产精品人人做人人爽人人添| 国产精品每日更新在线播放网址 | 国产乱子轮精品视频| 国产精品主播直播| 成人免费福利片| 在线一区二区三区四区| 91精品一区二区三区在线观看| 欧美大尺度电影在线| 国产无一区二区| 玉米视频成人免费看| 日韩精品一级中文字幕精品视频免费观看| 美女视频免费一区| 波多野结衣的一区二区三区| 欧美午夜寂寞影院| 欧美videos中文字幕| 国产精品成人网| 亚洲成人av在线电影| 国产综合色产在线精品| 99久久伊人网影院| 91麻豆精品国产91久久久使用方法| 精品国产成人系列| 亚洲人成精品久久久久久| 青青草伊人久久| www.99精品| 91精品国产乱| 国产精品蜜臀在线观看| 日韩福利视频网| 成人免费毛片aaaaa**| 欧美日韩卡一卡二| 国产日韩欧美麻豆| 午夜视频在线观看一区| 成人精品免费视频| 在线播放/欧美激情| 中文av一区特黄| 亚洲一区免费视频| 国产老妇另类xxxxx| 欧美色综合久久| 亚洲国产精品精华液ab| 免费久久精品视频| 色综合天天综合色综合av| 日韩欧美亚洲国产另类| 亚洲精品va在线观看| 国产精品影视在线| 欧美乱妇20p| 日韩毛片视频在线看| 精一区二区三区| 欧美精品一二三| 亚洲精品免费看| 成人看片黄a免费看在线| 欧美一区二区三区视频| 亚洲国产精品欧美一二99 | 91激情在线视频| 国产欧美日韩精品a在线观看| 图片区日韩欧美亚洲| 91蜜桃在线观看| 欧美国产激情一区二区三区蜜月| 免费精品视频最新在线| 91国产丝袜在线播放| 国产精品免费av| 国产综合色在线| 欧美一区三区二区| 樱桃视频在线观看一区| 粉嫩av一区二区三区在线播放| 欧美一区二区三区四区久久| 亚洲一二三四久久| 91视频在线观看免费| 国产精品青草综合久久久久99| 国产综合色在线| 精品91自产拍在线观看一区| 日韩黄色片在线观看| 欧美日韩一区二区三区在线看| 国产精品视频观看| 狠狠久久亚洲欧美| 欧美va亚洲va| 美女精品一区二区| 欧美一区二区精品在线| 日产国产高清一区二区三区| 欧美日韩一区二区欧美激情 | 国内成人免费视频| 欧美一区二区三区免费视频| 日本在线播放一区二区三区| 欧美日韩精品一区二区三区四区 | 91精品国产福利| 丝袜亚洲另类欧美综合| 欧美日韩国产精选| 日韩av在线免费观看不卡| 欧美高清www午色夜在线视频| 亚洲国产欧美另类丝袜| 欧美精品一卡两卡| 欧美aaaaaa午夜精品| 日韩欧美的一区| 国产精品乡下勾搭老头1| 国产女人18水真多18精品一级做| 国产精品一区三区| 中文字幕一区二区三区av| 色94色欧美sute亚洲线路一ni | 欧美综合欧美视频| 亚洲v精品v日韩v欧美v专区| 欧美日本在线一区| 麻豆中文一区二区| 国产亚洲一区二区在线观看| 国产不卡视频在线播放| 亚洲人一二三区| 欧美精品在线视频| 国产九色sp调教91| 亚洲视频精选在线| 欧美一区二区网站| 国产寡妇亲子伦一区二区| 国产精品国产三级国产aⅴ无密码| 91麻豆免费观看| 亚洲123区在线观看| www精品美女久久久tv| av中文字幕一区| 亚洲成人av免费| 久久精品一区蜜桃臀影院| 91蜜桃传媒精品久久久一区二区| 亚洲高清一区二区三区| 337p粉嫩大胆噜噜噜噜噜91av| 91视频.com| 蜜臀va亚洲va欧美va天堂| 国产精品天美传媒| 欧美日韩精品一区二区| 国产成人福利片| 亚洲成av人综合在线观看| 久久久国产午夜精品| 欧美三级电影网| 国产传媒日韩欧美成人| 亚洲影院理伦片| 国产无人区一区二区三区| 欧美日韩午夜在线视频| 国产成人精品免费| 日本亚洲天堂网| 国产欧美一二三区| 日韩一区二区三区高清免费看看| 成人免费看的视频| 久久精品国产99国产| 亚洲精品水蜜桃| 久久亚洲私人国产精品va媚药| 99re在线精品| 国产精品资源在线看| 日精品一区二区三区| 亚洲人成网站精品片在线观看| www久久精品| 欧美老肥妇做.爰bbww|