It overrides the vm_operations_struct nopage function to share a trace
buffer between user and driver.
in the nopage function, there is this:
offset = address - vma->vm_start + vma->vm_offset;
newPtr = ( (void *)devExt->Trace + offset );
atomic_inc(&mem_map[ MAP_NR(newPtr) ].count ); // increment usage count
now, it looks like this might map to:
atomic_inc(virt_to_page(newPtr).count );
But I'd like to be sure I'm not missing something... I already feel
like something is amiss in that I can't find any corresponding
decrements !!
-- Rick Nelson Life'll kill ya -- Warren Zevon Then you'll be dead -- Life'll kill ya- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/