Re: guidelines for kernel module development in linux

2014-03-07 Thread Valdis . Kletnieks
On Thu, 06 Mar 2014 15:52:11 +0530, pravin jadav said: > i want to develop a kernel module that will scan page cache and find the > pfn of those pages that have a same content in cache and in secondary > storage like physical disk, so please give me some idea how should i start > to develop kerne

Re: Inline functions

2014-03-07 Thread Valdis . Kletnieks
On 01 Mar 2014 10:04:23 +, "Summi" said: > a) inline functions in .c file --> Will it be correct to have inline function > declared in .c file? I am speaking with respect to device driver meant for the > linux kernel. I have a function, which is quite short in terms of function > body > and i

Re: My Kernel bug is celebrating 2 years. Can you help me fix it?

2014-03-07 Thread Peter Hurley
[ +cc linux-acpi ] On 03/07/2014 10:01 AM, Peter Senna Tschudin wrote: > On Thu, Mar 6, 2014 at 8:08 PM, Peter Hurley wrote: >> On 03/06/2014 01:27 PM, Bjorn Helgaas wrote: >>> >>> [+cc Stoney, Yinghai, Suresh, Joerg, Jiang, Pavel, Rafael, linux-pm] >>> >>> Let's add some folks who know about x2a

Re: My Kernel bug is celebrating 2 years. Can you help me fix it?

2014-03-07 Thread Peter Senna Tschudin
On Thu, Mar 6, 2014 at 8:08 PM, Peter Hurley wrote: > On 03/06/2014 01:27 PM, Bjorn Helgaas wrote: >> >> [+cc Stoney, Yinghai, Suresh, Joerg, Jiang, Pavel, Rafael, linux-pm] >> >> Let's add some folks who know about x2apic and VT-d. It's hard for >> people to magically pick stuff out of the LKML

Re: My Kernel bug is celebrating 2 years. Can you help me fix it?

2014-03-07 Thread Peter Hurley
On 03/06/2014 01:27 PM, Bjorn Helgaas wrote: > [+cc Stoney, Yinghai, Suresh, Joerg, Jiang, Pavel, Rafael, linux-pm] > > Let's add some folks who know about x2apic and VT-d. It's hard for > people to magically pick stuff out of the LKML firehose :) > > On Tue, Mar 4, 2014 at 2:26 PM, Peter Senna Ts

Re: My Kernel bug is celebrating 2 years. Can you help me fix it?

2014-03-07 Thread Bjorn Helgaas
[+cc Stoney, Yinghai, Suresh, Joerg, Jiang, Pavel, Rafael, linux-pm] Let's add some folks who know about x2apic and VT-d. It's hard for people to magically pick stuff out of the LKML firehose :) On Tue, Mar 4, 2014 at 2:26 PM, Peter Senna Tschudin wrote: > I have reported a bug more than two ye

guidelines for kernel module development in linux

2014-03-07 Thread pravin jadav
hello Sir. i want to develop a kernel module that will scan page cache and find the pfn of those pages that have a same content in cache and in secondary storage like physical disk, so please give me some idea how should i start to develop kernel module -- pravin jadav M.Tech (IT pursuing ) __

Re: My Kernel bug is celebrating 2 years. Can you help me fix it?

2014-03-07 Thread walter harms
Am 04.03.2014 22:26, schrieb Peter Senna Tschudin: > I have reported a bug more than two years ago and it is still > affecting me. The bug report gives some information: > > https://bugzilla.redhat.com/show_bug.cgi?id=787299 > > I have tried basic debug instructions from: > https://www.kernel.o

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-03-07 Thread Carlos Rimola
Hello All, I have a couple of "simple" follow-up questions on IPP USB (IPP-over-USB) "Host device" support: Is IPP USB designed to support connecting and printing from a device like a tablet or smartphone (e.g., iPad, iPhone, Etc.) directly connected to a printer over USB? If the answer is yes -

Device Tree support for x86_64 kernel? Unresolved symbol apic_force_enable

2014-03-07 Thread Bob Paauwe
Background: I'm working on a project that needs device tree like capability. Using the device tree OF driver works well and I don't want to create something that closely duplicates that functionality. When building a 32bit kernel, all works fine. However when building a 64bit kernel, the linkin

Re: where is the module reference count incremented or decremented ?

2014-03-07 Thread Jeong-Hwan Kim
Yes, I mean the number got by lsmod or cat /proc/modules.. 2014? 03? 03? 20:36, Rishi Agrawal ? ?: On Mon, Mar 3, 2014 at 4:21 PM, Jeong-Hwan Kim > wrote: Hi, everyone When the module is communicating with user through /proc file system, where is the

Inline functions

2014-03-07 Thread Summi
Hi, I am writing a device driver. I have a questions to ask: a) inline functions in .c file --> Will it be correct to have inline function declared in .c file? I am speaking with respect to device driver meant for the linux kernel. I have a function, which is quite short in terms of functio

Re: mmap giving Permission Denied error

2014-03-07 Thread Dongyan Yang
Ravi Teja gmail.com> writes: > Hello Ravi Teja, I've got the same problem as you. I've set mmap_min_addr as 0 and when I intentionally use MAP_FIXED to mmap to 0x. I've got error "Permission Denied". I want to ask you that which .config file have you modified and what modification hav

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-03-07 Thread Carlos Rimola
Michael, Thanks for the comprehensive response to my questions on IPP USB and confirming my assumptions. The only remaining question I have for the list at this time is - are there any Hosts, including model, OS and OS version (or other S/W requirements), presently available on the market (or oth

Re: [Printing-architecture] Google Summer of Code 2014 - IPP-over-USB printer support - Joint project idea for OpenPrinting and the kernel

2014-03-07 Thread Carlos Rimola
Hi All, I have some quick and general questions regarding IPP over USB ("IPP USB" for short). Some are related to Till's proposed project "Google Summer of Code 2014 - IPP-over-USB printer support". Any help and feedback will be greatly welcomed. I should mention that I am in favor of the proposed

Device Tree support for x86_64 kernel? Unresolved symbol apic_force_enable

2014-03-07 Thread Bob Paauwe
Background: I'm working on a project that needs device tree like capability. Using the device tree OF driver works well and I don't want to create something that closely duplicates that functionality. When building a 32bit kernel, all works fine. However when building a 64bit kernel, the linkin

Worth Trying to Take this Upstream?

2014-03-07 Thread Arlie Stephens
Hi Folks, I'm currently making my living working with a system derived from RHEL 6.1, complete with proprietary kernel modules. That's based on the 2.6.32 kernel, which is, of course, old news in the linux world. I recently encountered and bandaided a rather nasty semi-deadlock, that was being a

Re: Linux MM : virtual memory address space

2014-03-07 Thread Subramaniam Appadodharana
Good find Pramod, I did see that there is also some reference to the AMD x68_64 architecture page that limits the physical address to be 52-bit max and the virtual address to be 48-bits[1]. [1] http://developer.amd.com/wordpress/media/2012/10/24593_APM_v2.pdf - pages 118-120 On Fri, Mar 7, 2014

Re: Module related permission

2014-03-07 Thread Valdis . Kletnieks
On Fri, 07 Mar 2014 21:12:19 +0700, Cao Thanh Phuong said: > I want to research how to limit root's permission or root's privilege on a > file or folder. > So, do anybody know files or codes that are related to root's permission on > a specific file or folder in linux kernel? You're proably going

Module related permission

2014-03-07 Thread Cao Thanh Phuong
Hi everyone, I want to research how to limit root's permission or root's privilege on a file or folder. So, do anybody know files or codes that are related to root's permission on a specific file or folder in linux kernel? I'm looking forward to hearing from you! Best regards, Phuong *--* *Cao T