kernels/linux-2.4.0/drivers/char/nvram.c
/*
 * The are the file operation function for user access to /dev/nvram
 */
The are the file operation function for user access to /dev/nvram
The are the file operation function for user access to / dev / nvram
static long long nvram_llseek(struct file *file,loff_t offset, int origin )
{
	switch( origin ) {
	  case 0:
		break;
	  case 1:
		offset += file->f_pos;
		break;
	  case 2:
		offset += NVRAM_BYTES;
		break;
	}
	return( (offset >= 0) ? (file->f_pos = offset) : -EINVAL );
}
static long long nvram_llseek ( struct file * file , loff_t offset , int origin ) { switch ( origin ) { case 0 : break ; case 1 : offset += file -> f_pos ; break ; case 2 : offset += NVRAM_BYTES ; break ; } return ( ( offset >= 0 ) ? ( file -> f_pos = offset ) : - EINVAL ) ; }
The are the file operation function for user access to /dev/nvram
The are the file operation function for user access to / dev / nvram
/* nothing to do */