The iPhone Wiki is no longer updated. Visit this article on The Apple Wiki for current information. |
Difference between revisions of "NOR (NVRAM)"
m (typo) |
(moving pages that will be deleted; if there's a better place for them, move them there) |
||
Line 1: | Line 1: | ||
This section of [[NOR]] stores environmental variables. There are two copies of it. |
This section of [[NOR]] stores environmental variables. There are two copies of it. |
||
+ | |||
+ | == Various Decompilations == |
||
+ | typedef struct { |
||
+ | struct NvramVar* prev; |
||
+ | struct NvramVar* next; |
||
+ | unsigned char* string; |
||
+ | unsigned int integer; |
||
+ | unsigned int doSave; |
||
+ | char name[64]; |
||
+ | } NvramVar; |
||
+ | |||
+ | unsigned int nvram_getint(const char* name, unsigned int default) { |
||
+ | NvramVar* var = nvram_getvar(name); |
||
+ | if (var != NULL) { |
||
+ | return var->integer; |
||
+ | } |
||
+ | return default; |
||
+ | } |
||
+ | |||
+ | {{stub|hardware}} |
Revision as of 21:20, 12 November 2014
This section of NOR stores environmental variables. There are two copies of it.
Various Decompilations
typedef struct { struct NvramVar* prev; struct NvramVar* next; unsigned char* string; unsigned int integer; unsigned int doSave; char name[64]; } NvramVar;
unsigned int nvram_getint(const char* name, unsigned int default) { NvramVar* var = nvram_getvar(name); if (var != NULL) { return var->integer; } return default; }
This hardware article is a "stub", an incomplete page. Please add more content to this article and remove this tag. |