On Wed, 13 Apr 2005 15:15:47 +0200 Yves Crespin wrote:
|
| >| How can I obtains an buffer alignement from a "user program" ?
| >
| >I actually left that as an exercise (after I did it at home
| >last night). Did you read the hint (below)?
|
| Well ... either with malloc() and alignement or
>| How can I obtains an buffer alignement from a "user program" ?
>
>I actually left that as an exercise (after I did it at home
>last night). Did you read the hint (below)?
Well ... either with malloc() and alignement or posix_memalign(),
read() still failed!
My read buffer is in user space, so
| How can I obtains an buffer alignement from a user program ?
I actually left that as an exercise (after I did it at home
last night). Did you read the hint (below)?
Well ... either with malloc() and alignement or posix_memalign(),
read() still failed!
My read buffer is in user space, so it's
On Wed, 13 Apr 2005 15:15:47 +0200 Yves Crespin wrote:
|
| | How can I obtains an buffer alignement from a user program ?
|
| I actually left that as an exercise (after I did it at home
| last night). Did you read the hint (below)?
|
| Well ... either with malloc() and alignement or
On Tue, 12 Apr 2005 18:16:40 +0200 Yves Crespin wrote:
| I've got compilation error when I call vmalloc() from a user program
| (w/o defined __KENEL).
Where did vmalloc() come from?
I said malloc(), not vmalloc().
| How can I obtains an buffer alignement from a "user program" ?
I actually
I've got compilation error when I call vmalloc() from a user program
(w/o defined __KENEL).
How can I obtains an buffer alignement from a "user program" ?
Randy.Dunlap wrote:
On Mon, 11 Apr 2005 21:14:17 +0200 Yves Crespin wrote:
| Hello,
|
| Using O_DIRECT flag, read() failed and errno is
I've got compilation error when I call vmalloc() from a user program
(w/o defined __KENEL).
How can I obtains an buffer alignement from a user program ?
Randy.Dunlap wrote:
On Mon, 11 Apr 2005 21:14:17 +0200 Yves Crespin wrote:
| Hello,
|
| Using O_DIRECT flag, read() failed and errno is
On Tue, 12 Apr 2005 18:16:40 +0200 Yves Crespin wrote:
| I've got compilation error when I call vmalloc() from a user program
| (w/o defined __KENEL).
Where did vmalloc() come from?
I said malloc(), not vmalloc().
| How can I obtains an buffer alignement from a user program ?
I actually left
On Mon, 11 Apr 2005 21:14:17 +0200 Yves Crespin wrote:
| Hello,
|
| Using O_DIRECT flag, read() failed and errno is EINVAL.
| kernel 2.4.22
| Filesystem Ext3 mount on /home
| What's wrong ?
| Thanks
In fs/buffer.c, it wants the buffer & the length (size) to be aligned:
function: brw_kiovec()
Hello,
Using O_DIRECT flag, read() failed and errno is EINVAL.
kernel 2.4.22
Filesystem Ext3 mount on /home
What's wrong ?
Thanks
Yves Crespin
#gcc -Wall -D_GNU_SOURCE direct.c -o direct
#cp direct d
#./direct d
#open failed [d] 040402 0666 errno 22
#
/* --- start code --- */
#include
#include
Hello,
Using O_DIRECT flag, read() failed and errno is EINVAL.
kernel 2.4.22
Filesystem Ext3 mount on /home
What's wrong ?
Thanks
Yves Crespin
#gcc -Wall -D_GNU_SOURCE direct.c -o direct
#cp direct d
#./direct d
#open failed [d] 040402 0666 errno 22
#
/* --- start code --- */
#include stdio.h
On Mon, 11 Apr 2005 21:14:17 +0200 Yves Crespin wrote:
| Hello,
|
| Using O_DIRECT flag, read() failed and errno is EINVAL.
| kernel 2.4.22
| Filesystem Ext3 mount on /home
| What's wrong ?
| Thanks
In fs/buffer.c, it wants the buffer the length (size) to be aligned:
function: brw_kiovec()
12 matches
Mail list logo