Linux Kernel
3.7.1
|
#include <linux/types.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/ctype.h>
#include <linux/dmi.h>
#include <linux/efi.h>
#include <linux/bootmem.h>
#include <linux/random.h>
#include <asm/dmi.h>
Go to the source code of this file.
Variables | |
int | dmi_available |
int dmi_check_system | ( | const struct dmi_system_id * | list | ) |
dmi_check_system - check system DMI data : array of dmi_system_id structures to match against All non-null elements of the list must match their slot's (field index's) data (i.e., each list string must be a substring of the specified DMI slot's string data) to be considered a successful match.
Walk the blacklist table running matching functions until someone returns non zero or we hit the end. Callback function is called for each successful match. Returns the number of matches.
Definition at line 525 of file dmi_scan.c.
|
read |
Definition at line 619 of file dmi_scan.c.
|
read |
dmi_first_match - find dmi_system_id structure matching system DMI data : array of dmi_system_id structures to match against All non-null elements of the list must match their slot's (field index's) data (i.e., each list string must be a substring of the specified DMI slot's string data) to be considered a successful match.
Walk the blacklist table until the first match is found. Return the pointer to the matching entry or NULL if there's no match.
Definition at line 553 of file dmi_scan.c.
dmi_get_date - parse a DMI date : data index (see enum dmi_field) : optional out parameter for the year : optional out parameter for the month : optional out parameter for the day
The date field is assumed to be in the form resembling [mm[/dd]]/yy[yy] and the result is stored in the out parameters any or all of which can be omitted.
If the field doesn't exist, all out parameters are set to zero and false is returned. Otherwise, true is returned with any invalid part of date set to zero.
On return, year, month and day are guaranteed to be in the range of [0,9999], [0,12] and [0,31] respectively.
Definition at line 656 of file dmi_scan.c.
dmi_get_system_info - return DMI data value : data index (see enum dmi_field)
Returns one DMI data value, can be used to perform complex DMI data checks.
Definition at line 572 of file dmi_scan.c.
dmi_name_in_serial - Check if string is in the DMI product serial information : string to check for
Definition at line 582 of file dmi_scan.c.
dmi_name_in_vendors - Check if string is in the DMI system or board vendor name : Case sensitive Name
Definition at line 594 of file dmi_scan.c.
Definition at line 430 of file dmi_scan.c.
dmi_walk - Walk the DMI table and get called back for every record : Callback function : Private data to be passed to the callback function
Returns -1 when the DMI table can't be reached, 0 on success.
Definition at line 717 of file dmi_scan.c.
EXPORT_SYMBOL | ( | dmi_check_system | ) |
EXPORT_SYMBOL | ( | dmi_first_match | ) |
EXPORT_SYMBOL | ( | dmi_get_system_info | ) |
EXPORT_SYMBOL | ( | dmi_name_in_vendors | ) |
EXPORT_SYMBOL | ( | dmi_find_device | ) |
EXPORT_SYMBOL | ( | dmi_get_date | ) |
EXPORT_SYMBOL_GPL | ( | dmi_walk | ) |
EXPORT_SYMBOL_GPL | ( | dmi_match | ) |
int dmi_available |
Definition at line 134 of file dmi_scan.c.