ioperm and iopl
Hi list, Are we going to remove the support of ioperm and iopl system call in future kernel release? I heard it but not sure if its already removed or candidate for removal. Regards, Adil ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: kernel stack memory
Hi, On Thu, Sep 13, 2012 at 1:59 PM, Arun KS getaru...@gmail.com wrote: Hello Shubham, On Thu, Sep 13, 2012 at 12:15 PM, shubham sharma shubham20...@gmail.com wrote: Hi, As far as i know, the size of stack allocated in the kernel space is 8Kb for each process. But in case i use more than 8Kb of memory from the stack then what will happen? I think that in that case the system would crash because i am accessing an illegal memory area. I wrote kernel module in which i defined an integer array whose size was 8000. But still it did not crash my system. Why? The module i wrote was as follows: #include linux/kernel.h #include linux/module.h int __init init_my_module(void) { int arr[8000]; printk(%s:%d\tmodule initilized\n, __func__, __LINE__); arr[1] = 1; arr[4000] = 1; arr[7999] = 1; Instead do a memset. memset(arr, 0, 8192); If you do this the current calling process thread_info will be set to zero. This should cause a crash. I tried and this is also not causing any crash. Thanks, Adil Thanks, Arun printk(%s:%d\tarr[1]:%d, arr[4000]:%d, arr[7999]:%d\n, __func__, __LINE__, arr[1], arr[4000], arr[7999]); return 0; } void __exit cleanup_my_module(void) { printk(exiting\n); return; } module_init(init_my_module); module_exit(cleanup_my_module); MODULE_LICENSE(GPL); ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Re: Tool for automatic style of coding guidelines
On Fri, Jan 27, 2012 at 11:45 PM, Greg KH g...@kroah.com wrote: On Fri, Jan 27, 2012 at 05:50:30PM +0530, Prajosh Premdas wrote: Hi I have developed some kernel drivers and would like to send the patches for review. But i find that I have not followed the coding guideline for tabs and spaces properly, which can be easily corrected by using some tools like astyle. Can any body please help me with the proper commands string for the astyle tool? Or could any body please suggest me with any new tool like indent etc which you are using scripts/Lindent will give you a good start, but odds are you really want to do this by hand, it will be easier in the end as indent can do some strange things at times. good luck, greg k-h You can see this excellent video [1] where Greg has explained how to submit your first patch. [1] http://www.youtube.com/watch?v=LLBrBBImJt4 Regards, Adil ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Device mapper header file error
Hi List, ** ** I am trying to compile a kernel module which uses the device mapper header files (dm.h and dm-bio-list.h). I checked in the stock kernel source that these files are present under drivers/md directory. When I try to build the module, it gives error for these header files as missing. I checked the Makefile and found that it includes the path (-I$(TOPDIR)/ drivers/md) ** ** But when I check the content of this directory on my machine it doesn’t include the header files: [root@localhost redhat]# ls /usr/src/kernels/2.6.18-8.el5-i686/drivers/md*** * Kconfig Makefile raid6test [root@localhost redhat]# ** ** While the other header files referred by the kernel module under include/linux directory exists. ** ** My machine detail: [adil@localhost ~]$ uname -a Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux [adil@localhost ~]$ ** ** Thanks in advance. ** Regards, Adil Mujeeb ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies