corinfo_GetInfo
parent
a6bc0f67f4
commit
590f5a372f
16
corinfo.h
16
corinfo.h
|
|
@ -212,18 +212,6 @@ static int __hdd_info(struct corinfo* info);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int corinfo_GetInfo(struct corinfo* info)
|
|
||||||
{
|
|
||||||
if (info == NULL) return -1;
|
|
||||||
*info = (struct corinfo) { 0 };
|
|
||||||
|
|
||||||
if (__cpu_info(info) == -1) return -1;
|
|
||||||
if (__ram_info(info) == -1) return -1;
|
|
||||||
if (__hdd_info(info) == -1) return -1;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -321,6 +309,8 @@ static int __hdd_info(struct corinfo* info);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
int corinfo_GetInfo(struct corinfo* info)
|
int corinfo_GetInfo(struct corinfo* info)
|
||||||
{
|
{
|
||||||
|
|
@ -333,7 +323,7 @@ static int __hdd_info(struct corinfo* info);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue