📄 bcmnvram.h
字号:
/* * NVRAM variable manipulation * * Copyright 2005-2006, Broadcom Corporation * All Rights Reserved. * * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE. * * $Id$ */#ifndef _bcmnvram_h_#define _bcmnvram_h_#ifndef _LANGUAGE_ASSEMBLY#include <typedefs.h>#include <bcmdefs.h>/* * Get the value of an NVRAM variable. The pointer returned may be * invalid after a set. * @param name name of variable to get * @return value of variable or NULL if undefined */extern char * nvram_get(const char *name);/* * Get the value of an NVRAM variable. * @param name name of variable to get * @return value of variable or NUL if undefined */#define nvram_safe_get(name) (nvram_get(name) ? : "")/* * Get all NVRAM variables (format name=value\0 ... \0\0). * @param buf buffer to store variables * @param count size of buffer in bytes * @return 0 on success and errno on failure */extern int nvram_getall(char *buf, int count);#endif /* _LANGUAGE_ASSEMBLY */#endif /* _bcmnvram_h_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -