Re: Comprehensive Linux API manual by subsystem Required

2015-08-20 Thread Aruna Hewapathirane
>> I am developing a user space program which interacts with "file system" https://www.kernel.org/doc/htmldocs/filesystems/index.html > and "cryptography" https://www.kernel.org/doc/htmldocs/crypto-API/index.html The best documentation IS right there in the kernel source :) __

Re: Placement Allocation within the kernel

2015-08-20 Thread Alex Wilson
I'm a little confused about the whole page table bit, since (according to my limited knowledge) that would mean managing page attributes and playing nice with the MMU. Although I think I understand what you meant by the rest. I believe kmalloc internally uses the slab allocator to bunch up memory i

Using gpio from device tree on platform devices.

2015-08-20 Thread Daniel.
Hi all, I'm trying to migrate a driver from board files to device tree. I've added the gpios to device tree. My device is loaded automatically, this is nice, but I'm facing problems while getting gpio from device tree using of_get_property(). Here is the device tree node: powerfailure {

Re: msleep() in interrupt handler?

2015-08-20 Thread victorascroft
On 15-08-20 19:36:23, Jeff Haran wrote: > > -Original Message- > > From: victorascr...@gmail.com [mailto:victorascr...@gmail.com] > > Sent: Thursday, August 20, 2015 12:16 PM > > To: Jeff Haran > > Cc: Woody Wu; John de la Garza; kernelnewbies > > Subject: Re: msleep() in interrupt handler?

RE: msleep() in interrupt handler?

2015-08-20 Thread Jeff Haran
> -Original Message- > From: victorascr...@gmail.com [mailto:victorascr...@gmail.com] > Sent: Thursday, August 20, 2015 12:16 PM > To: Jeff Haran > Cc: Woody Wu; John de la Garza; kernelnewbies > Subject: Re: msleep() in interrupt handler? > > On 15-08-20 18:16:02, Jeff Haran wrote: > > >

Re: msleep() in interrupt handler?

2015-08-20 Thread victorascroft
On 15-08-20 18:16:02, Jeff Haran wrote: > > -Original Message- > > From: victorascr...@gmail.com [mailto:victorascr...@gmail.com] > > Sent: Thursday, August 20, 2015 10:50 AM > > To: Jeff Haran > > Cc: Woody Wu; John de la Garza; kernelnewbies > > Subject: Re: msleep() in interrupt handler?

RE: msleep() in interrupt handler?

2015-08-20 Thread Jeff Haran
> -Original Message- > From: victorascr...@gmail.com [mailto:victorascr...@gmail.com] > Sent: Thursday, August 20, 2015 10:50 AM > To: Jeff Haran > Cc: Woody Wu; John de la Garza; kernelnewbies > Subject: Re: msleep() in interrupt handler? > > On 15-08-20 16:54:26, Jeff Haran wrote: > > >

Re: msleep() in interrupt handler?

2015-08-20 Thread victorascroft
On 15-08-20 16:54:26, Jeff Haran wrote: > > -Original Message- > > From: victorascr...@gmail.com [mailto:victorascr...@gmail.com] > > Sent: Thursday, August 20, 2015 9:42 AM > > To: Woody Wu > > Cc: John de la Garza; Jeff Haran; kernelnewbies > > Subject: Re: msleep() in interrupt handler?

Fwd: is it possible to liimit the softirq re entrance times

2015-08-20 Thread vichy
after I tracing softirq flow in ARM platform, I have some colusion like below: 1. softirq is running at the end of any irq context, when irq is eabled. 2. as long as any Hard irq happen, softirq can be interrupt and reentrant My question are: 1. in __do_sofiq, there is a jiffies setting to make su

RE: msleep() in interrupt handler?

2015-08-20 Thread Jeff Haran
> -Original Message- > From: victorascr...@gmail.com [mailto:victorascr...@gmail.com] > Sent: Thursday, August 20, 2015 9:42 AM > To: Woody Wu > Cc: John de la Garza; Jeff Haran; kernelnewbies > Subject: Re: msleep() in interrupt handler? > > On 15-08-20 21:44:14, Woody Wu wrote: > > On Th

Re: msleep() in interrupt handler?

2015-08-20 Thread victorascroft
On 15-08-20 21:44:14, Woody Wu wrote: > On Thursday, August 20, 2015, wrote: > > > On 15-08-20 19:02:50, Woody Wu wrote: > > > On Thursday, August 20, 2015, John de la Garza > > wrote: > > > > > > > On Thu, Aug 20, 2015 at 01:45:34PM +0800, Woody Wu wrote: > > > > > I did not see the message. A

Placement Allocation within the kernel

2015-08-20 Thread Kenneth Adam Miller
Suppose I want to do something analogous to C++'s new in userspace. But instead, I want an entirely new page table to be constructed at the location of my choosing. In addition, I want a specific region for that page table to manage, and this requires that this region no longer be available to the

Re: msleep() in interrupt handler?

2015-08-20 Thread Woody Wu
On Thursday, August 20, 2015, wrote: > On 15-08-20 19:02:50, Woody Wu wrote: > > On Thursday, August 20, 2015, John de la Garza > wrote: > > > > > On Thu, Aug 20, 2015 at 01:45:34PM +0800, Woody Wu wrote: > > > > I did not see the message. Actually my interrupt handler is calling > > > > i2c_tr

Re: msleep() in interrupt handler?

2015-08-20 Thread victorascroft
On 15-08-20 19:02:50, Woody Wu wrote: > On Thursday, August 20, 2015, John de la Garza wrote: > > > On Thu, Aug 20, 2015 at 01:45:34PM +0800, Woody Wu wrote: > > > I did not see the message. Actually my interrupt handler is calling > > > i2c_transfer which in turn used msleep() somewhere in its

Re: msleep() in interrupt handler?

2015-08-20 Thread Woody Wu
On Thursday, August 20, 2015, John de la Garza wrote: > On Thu, Aug 20, 2015 at 01:45:34PM +0800, Woody Wu wrote: > > I did not see the message. Actually my interrupt handler is calling > > i2c_transfer which in turn used msleep() somewhere in its code. Is this > > normal or dangerous? > > Can