kernels/linux-2.4.0/drivers/char/nvram.c
/*
 * These non-internal functions are provided to be called by other parts of
 * the kernel. It's up to the caller to ensure correct checksum before reading
 * or after writing (needs to be done only once).
 *
 * They're only built if CONFIG_ATARI is defined, because Atari drivers use
 * them. For other configurations (PC), the rest of the kernel can't rely on
 * them being present (this driver may not be configured at all, or as a
 * module), so they access config information themselves.
 */
These non-internal functions are provided to be called by other parts of
the kernel. It's up to the caller to ensure correct checksum before reading
or after writing (needs to be done only once).

They're only built if CONFIG_ATARI is defined, because Atari drivers use
them. For other configurations (PC), the rest of the kernel can't rely on
them being present (this driver may not be configured at all, or as a
module), so they access config information themselves.
These non - internal functions are provided to be called by other parts of the kernel . It ' s up to the caller to ensure correct checksum before reading or after writing ( needs to be done only once ) . They ' re only built if CONFIG_ATARI is defined because Atari drivers use them . For other configurations ( PC ) the rest of the kernel can ' t rely on them being present ( this driver may not be configured at all or as a module ) so they access config information themselves .
unsigned char nvram_read_byte( int i )
{
	unsigned long flags;
	unsigned char c;
	spin_lock_irqsave (&rtc_lock, flags);
	c = nvram_read_int( i );
	spin_unlock_irqrestore (&rtc_lock, flags);
	return( c );
}
unsigned char nvram_read_byte ( int i ) { unsigned long flags ; unsigned char c ; spin_lock_irqsave ( & rtc_lock , flags ) ; c = nvram_read_int ( i ) ; spin_unlock_irqrestore ( & rtc_lock , flags ) ; return ( c ) ; }
These non-internal functions are provided to be called by other parts of
 the kernel.
These non - internal functions are provided to be called by other parts of the kernel .