Confusion about __do_fault and MM_ANONPAGES

2014-11-10 Thread Joel Fernandes
Hi, I have some confusion about when is anon=1 when __do_fault is called. __do_fault seems to be called only when the page fault is of a linear or a non-linear mapping. My understanding is neither of these can be anonymous, so I am confused about the below code fragment: In which case is anon=1

Re: kernel loglevel

2016-10-17 Thread Joel Fernandes
Hi Wenda, pr_debug needs you to define the DEBUG macro to activate it. Check: http://stackoverflow.com/questions/28936199/pr-debug-not-giving-any-output and the kernel docs, https://www.kernel.org/doc/local/pr_debug.txt Joel On Mon, Oct 17, 2016 at 4:17 PM, Wenda Ni

Re: [API] How many time to be context-switched?

2016-11-27 Thread Joel Fernandes
Please reply always to kernelnewbies. On Nov 27, 2016 11:09 AM, "Ricardo Biehl" <rbpofic...@gmail.com> wrote: > > 2016-11-27 16:01 GMT-02:00, Joel Fernandes <agnel.j...@gmail.com>: > > On Nov 27, 2016 9:44 AM, "Ricardo Biehl" <rbpofic...@gmail.com>

Re: [API] How many time to be context-switched?

2016-11-27 Thread Joel Fernandes
On Nov 27, 2016 9:44 AM, "Ricardo Biehl" wrote: > > As a question I've made on Stackexchange > < http://stackoverflow.com/questions/40579919/how-many-time-to-be-context-switched >: > > I'm developing a real-time program where scheduler's context-switches >

Re: [PATCH 0/7] security: apparmor: apparmorfs.c Checkpatch mods

2016-11-26 Thread Joel Fernandes
On Nov 26, 2016 1:28 PM, "Bjørn Mork" wrote: > > Greg KH writes: > > On Sat, Nov 26, 2016 at 01:02:14PM -0500, Walt Feasel wrote: > > > >> So kernelnewbies is not to be used to learn about how to fix > >> checkpatch type warning? > > > > Maybe, but really, if you

Re: How to use spi device from another kernel module?

2016-12-06 Thread Joel Fernandes
On Tue, Dec 6, 2016 at 11:42 AM, Ran Shalit wrote: > Hello, > > I have spi device which is registered using spi_register_board_info(), > and I would like to get a pointer to this device in some other kernel module. > > Is there a simple way to get a pointer to pointer to a