Re: Physical address of Page Table Entries

2013-11-08 Thread Mark Wallace
Thanks Jeff. Solved my problem. Below is my further investigation to support Jeff's idea. The size of a Page Table (not a single entry) at any level is exactly 1 page. 2 level: 10+10+12. linear address will assign 10 bits for Page Directory and 10 bits for Page Table, and thus each Page Table

Physical address of Page Table Entries

2013-11-08 Thread Mark Wallace
Hi all, *Question: * When we use 2 level paging(Directory+Table+Offset), does the page table entries have to be put exactly on the beginning of a page frame? *Description: * The format of Page Directory and Page Table are the same. And they all contain 20 bits as a pointer to the next level entri

Re: How to find out which part of code is changing a particular data structure.

2013-11-08 Thread Frank Ch. Eigler
Rajat Jain writes: > [...] I have a memory location (One of the fields in a kernel data > structure) and I want to track down the code that changes the value > of that particular location. Some thing like a "watchpoint". See the register_wide_hw_breakpoint API. You could write a small module t

Are you interested in a Linux Kernel Off-topic Mailing List?

2013-11-08 Thread Aldo Iljazi
Hello everyone. I am thinking of creating a Mailing List for our community but for unofficial topics. I think it would help to know each other and it would expand our conversation into different areas. Politics and Religion are prohibited topics. I was thinking the areas of discussion to be more o

Re: How to find out which part of code is changing a particular data structure.

2013-11-08 Thread Valdis . Kletnieks
On Thu, 07 Nov 2013 23:23:18 -0800, kiran kumar said: > Can you define that location as read only(i.e constant)?. This is only for > debug prupose, later you can remove. Note that this requires 2 things: 1) A kernel built with CONFIG_DEBUG_RODATA=y 2) The structure needs to have a compile-time i

Re: ALIGN MACRO understanding

2013-11-08 Thread Mandeep Sandhu
On Fri, Nov 8, 2013 at 1:53 PM, anish singh wrote: > On Nov 6, 2013 10:38 PM, "Mandeep Sandhu" wrote: >> >> On Thu, Nov 7, 2013 at 11:04 AM, sdptr...@gmail.com >> wrote: >> > While going through kernel source , I came across this ALIGN macro >> > >> > #define ALIGN(x, a) __ALIGN_KER

Re: scsi subsystem in linux

2013-11-08 Thread pmkernel
I think sd_prep_fn is a generic function for any SCSI device while scsi_prep_fn specifically SCSI Disks or LUN's, so if you have a filesystem created on top of SCSI Disk scsi_prep_fn function will be called. In case you have any other SCSI device then you will have sd_prep_fn will be called. The c

Re: ALIGN MACRO understanding

2013-11-08 Thread anish singh
On Nov 6, 2013 10:38 PM, "Mandeep Sandhu" wrote: > > On Thu, Nov 7, 2013 at 11:04 AM, sdptr...@gmail.com > wrote: > > While going through kernel source , I came across this ALIGN macro > > > > #define ALIGN(x, a) __ALIGN_KERNEL((x), (a)) > > > > and > > > > #define __ALIGN_KERNEL(x,