Hi,
I am trying to do file write operations in a thread (filewrite())
initiated from a jprobe (fs_vfs_write()) set on kernel function
(vfs_write()). Although the write operation succeed, I get this on my
log:
BUG: sleeping function called from invalid context at kernel/sched.c:3678
Asking for KFREE is as silly as asking for a macro to check if kmalloc
succeeded for a pointer, else return ENOMEM.
#define CKMALLOC(p,x) \
do { \
p = kmalloc(x, GFP_KERNEL); \
if(!p) return -ENOMEM; \
} while(0)
On 1/8/07, Amit Choudhary <[EMAIL PROTECTED]> wrote:
---
Asking for KFREE is as silly as asking for a macro to check if kmalloc
succeeded for a pointer, else return ENOMEM.
#define CKMALLOC(p,x) \
do { \
p = kmalloc(x, GFP_KERNEL); \
if(!p) return -ENOMEM; \
} while(0)
On 1/8/07, Amit Choudhary [EMAIL PROTECTED] wrote:
--- Pekka
Hi,
I am trying to do file write operations in a thread (filewrite())
initiated from a jprobe (fs_vfs_write()) set on kernel function
(vfs_write()). Although the write operation succeed, I get this on my
log:
BUG: sleeping function called from invalid context at kernel/sched.c:3678
i, Feb 25, 2005 at 10:30:27AM +0530, Sumit Narayan wrote:
> > Hi,
> >
> > I have an external IDE connector through USB port. Where could I get
> > the exact point inside the kernel, from where I would get information
> > such as Block No., Request size, partition detai
at 10:30:27AM +0530, Sumit Narayan wrote:
Hi,
I have an external IDE connector through USB port. Where could I get
the exact point inside the kernel, from where I would get information
such as Block No., Request size, partition details for a particular
request, _just_ before being sent
Hi,
I have an external IDE connector through USB port. Where could I get
the exact point inside the kernel, from where I would get information
such as Block No., Request size, partition details for a particular
request, _just_ before being sent to the disk.
Like, for a normal IDE, I could gather
Hi,
I have an external IDE connector through USB port. Where could I get
the exact point inside the kernel, from where I would get information
such as Block No., Request size, partition details for a particular
request, _just_ before being sent to the disk.
Like, for a normal IDE, I could gather
Hi,
I have an external IDE connector through USB port. Where could I get
the exact point inside the kernel, from where I would get information
such as Block No., Request size, partition details for a particular
request, _just_ before being sent to the disk.
Like, for a normal IDE, I could gather
Hi,
I have an external IDE connector through USB port. Where could I get
the exact point inside the kernel, from where I would get information
such as Block No., Request size, partition details for a particular
request, _just_ before being sent to the disk.
Like, for a normal IDE, I could gather
10 matches
Mail list logo