Re: Why SAVE_ALL (for x86) macro in 2.6 loads __USER_DS to %ds

2010-06-07 Thread rahul dev
Hi Joel, > since Linux doesn't use segmentation , all the segment descriptor values > > are the same. So I think it doesn't matter what selector value you load > in > DS, ES etc. Though I don't know the real reason for why __USER_DS  is > used > instead of __KERNEL_DS Although, linux doesn't

Why SAVE_ALL (for x86) macro in 2.6 loads __USER_DS to %ds

2010-06-07 Thread rahul dev
Guys, I was looking at the SAVE_ALL code for kernel 2.6. I am confused why SAVE_ALL restores __USER_DS to ds and es ? #define SAVE_ALL \ cld; \ pushl %fs; \ pushl %es; \ pushl %ds; \ pushl %eax; \ pushl %ebp; \ pushl %edi; \ pushl

significance of BUF_CLEAN list

2010-01-04 Thread rahul dev
Guys, In function __refile_buffer() (linux 2.4.21-50), what is the significance of moving a buffer to BUF_CLEAN list. I don't see traversing BUF_CLEAN list anywhere in the code. So, why do we need to move the buffer to clean list. In case if dispose == BUF_CLEAN, just removing the buffer fr