help!!a question to trouble me a lot in reading the driver code
- From: nick811125@xxxxxxxxx
- Date: 20 Aug 2006 02:28:57 -0700
there is a code question in the implement the mmap function.
struct page* simple_nopae(struct vm_area_struct* vma,unsigned long
addr,int* type)
{
unsigned long off=vma->vm_pgoff<<PAGE_SHIFT;
.......
}
this operation appear in so many source code,but what's the
meaning?????
what do we get from the off????
is the vm_pgoff pfn or virtual address?????
i just know pfn = physical address>>PAGE_SHIFT
.
- Prev by Date: Re: Adding a new interrupt handler to the IDT
- Next by Date: inter_module_* routines deprecated in 2.6.16 kernel
- Previous by thread: Adding a new interrupt handler to the IDT
- Next by thread: inter_module_* routines deprecated in 2.6.16 kernel
- Index(es):