Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 317727 Details for
Bug 463573
Patches to improve timekeeping for RHEL kernels running under VMware.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
BACKPORT: Defines dmi_name_in_vendors
dmi_definition.patch (text/plain), 2.10 KB, created by
Alok Kataria
on 2008-09-25 21:14:30 UTC
(
hide
)
Description:
BACKPORT: Defines dmi_name_in_vendors
Filename:
MIME Type:
Creator:
Alok Kataria
Created:
2008-09-25 21:14:30 UTC
Size:
2.10 KB
patch
obsolete
>Add dmi function definition. > >From: Alok N Kataria <akataria@vmware.com> > >Add dmi_name_in_vendors, which will be used by the vmware detection code. >Please note that this patch is a partial back port of >commit# a1bae67243512ca30ceda48e3e24e25b543f8ab7 >--- > > drivers/firmware/dmi_scan.c | 19 +++++++++++++++++++ > include/linux/dmi.h | 2 ++ > 2 files changed, 21 insertions(+), 0 deletions(-) > > >diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c >index bfa03a6..bed7a40 100644 >--- a/drivers/firmware/dmi_scan.c >+++ b/drivers/firmware/dmi_scan.c >@@ -328,6 +328,25 @@ char *dmi_get_system_info(int field) > EXPORT_SYMBOL(dmi_get_system_info); > > /** >+ * dmi_name_in_vendors - Check if string is anywhere in the DMI vendor information. >+ * @str: Case sensitive Name >+ */ >+int dmi_name_in_vendors(const char *str) >+{ >+ static int fields[] = { DMI_BIOS_VENDOR, DMI_BIOS_VERSION, DMI_SYS_VENDOR, >+ DMI_PRODUCT_NAME, DMI_PRODUCT_VERSION, DMI_BOARD_VENDOR, >+ DMI_BOARD_NAME, DMI_BOARD_VERSION, DMI_NONE }; >+ int i; >+ for (i = 0; fields[i] != DMI_NONE; i++) { >+ int f = fields[i]; >+ if (dmi_ident[f] && strstr(dmi_ident[f], str)) >+ return 1; >+ } >+ return 0; >+} >+EXPORT_SYMBOL(dmi_name_in_vendors); >+ >+/** > * dmi_find_device - find onboard device by type/name > * @type: device type or %DMI_DEV_TYPE_ANY to match all device types > * @name: device name string or %NULL to match all >diff --git a/include/linux/dmi.h b/include/linux/dmi.h >index 38dc403..ccd2eb4 100644 >--- a/include/linux/dmi.h >+++ b/include/linux/dmi.h >@@ -69,6 +69,7 @@ extern struct dmi_device * dmi_find_device(int type, const char *name, > struct dmi_device *from); > extern void dmi_scan_machine(void); > extern int dmi_get_year(int field); >+extern int dmi_name_in_vendors(const char *str); > > #else > >@@ -77,6 +78,7 @@ static inline char * dmi_get_system_info(int field) { return NULL; } > static inline struct dmi_device * dmi_find_device(int type, const char *name, > struct dmi_device *from) { return NULL; } > static inline int dmi_get_year(int year) { return 0; } >+static inline int dmi_name_in_vendors(const char *s) { return 0; } > > #endif >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 463573
:
317536
|
317537
|
317538
|
317727
|
317728
|
317734
|
317735
|
319716
|
319717
|
319718
|
319719
|
319720
|
319799
|
319817
|
320098
|
320133
|
320485
|
321043
|
325724
|
325725
|
325726
|
325727
|
325728
|
326672
|
329135
|
329213
|
332979