AIX system call kpread

Thread Tools Search this Thread
Operating Systems AIX AIX system call kpread
# 1  
Old 02-24-2014
AIX system call kpread

Hello all, I have been searching for days for the definition of a KPREAD with no success. I am using the truss command on AIX 6.1 to trace a process that I have to prove is not functioning properly. I would like to define what a KPREAD is in the description of the problem. Any help would be greatly appreciated. Thank you

excerpt of truss output ...
kpread(21, 0x070000000FEF9438, 4096, 0x0000000007E48000, 0x0FFFFFFFFFFFC764) = 4096
kpread(21, 0x070000000EE653A8, 4096, 0x0000000008067000, 0x0FFFFFFFFFFFC764) = 4096
kpread(21, 0x070000000FEFC440, 4096, 0x0000000008091000, 0x0FFFFFFFFFFFC764) = 4096
kpread(21, 0x070000000C2F7840, 4096, 0x000000000809A000, 0x0FFFFFFFFFFFC764) = 4096
kpread(21, 0x070000000B2F9840, 4096, 0x000000000809D000, 0x0FFFFFFFFFFFC764) = 4096
kpread(21, 0x070000000FF01440, 4096, 0x0000000008311000, 0x0FFFFFFFFFFFC764) = 4096

Last edited by Scott; 02-24-2014 at 02:56 PM.. Reason: Added code tags...
# 2  
Old 02-24-2014
I think it is a kernel function, not even a system call, which may be why you're having difficulty finding it.
# 3  
Old 02-24-2014
kpread is a classic read system call...look on the internet for source file
# 4  
Old 02-25-2014
Thanks you for your responses. I was able to find a BaseSystemCalls.h on IBM's website which included kpread and kread. This and a few other search results leads me to believe kpread may be a system call regarding filesystem I/O while kread is physical I/O.

ssize_t kpread( int fd, void * buf, size_t len, ulong off1, ulong off2);

ssize_t kread(int fd,void * buf,size_t len);

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

open() system call in c++????

Hi friends, I am trying to use the open system call in c++ language. Please have a look at my code. vi Open.cpp 1 #include <stdio.h> 2 #include <iostream> 3 4 #define BUFSIZE 1 5 6 using namespace std; 7 8 int main() 9 { 10 ... (5 Replies)
Discussion started by: gabam
5 Replies

2. Shell Programming and Scripting

system call

Trying to figure out a load issue with a webserver. I have traced a php script and noticed the following connect(4, {sa_family=AF_INET, sin_port=htons(3306), sin_addr=inet_addr("XX.XX.XX.XX")}, 16) = -1 EINPROGRESS (Operation now in progress) <0.000035> poll(, 1, 2000) = 1 () <0.000120>... (5 Replies)
Discussion started by: rajan007
5 Replies

3. Programming

need help with system call

hi everyone i wrote a system call and compiled the kernel succesfully... my system call is in a file in the kernel folder named my_syscall1.c (kernel/my_syscall1.c) the header file for this system call i added it in the folder include like this include/my_syscall1/my_syscall1.h my problem is... (2 Replies)
Discussion started by: demis87
2 Replies

4. Programming

system call

I have a cgi script which is called after certain time interval, which has this: system ("ls -l /tmp/cgic* | grep -v \"cgicsave.env\" | awk '{print $5}'"); During the execution of this script,the output is 0 sometimes. But due to this the system call is not working at all and doesnt o/p... (2 Replies)
Discussion started by: xs2punit
2 Replies

5. Programming

C:system call

Hi I'm studing the system call. I've written a small program that return the time spent in doing some operations. Now I'd like to write one that return the time spent in user mode of a process. I'm reading that i should use the tms struct: clock_t times(struct tms *buf); struct tms {... (2 Replies)
Discussion started by: Dedalus
2 Replies

6. Shell Programming and Scripting

system call

Hi, How to write a system calls in a script ? > cd $HOME > ls -ltr thanks in advance.. (10 Replies)
Discussion started by: hegdeshashi
10 Replies

7. Programming

Help required with using system() call

Hi, I try to write a C program which lists the output of a paticular command with all the available options (a to z) for the command in the directory of execution. This program will generate the output if the option exists for the particular command else it will display some message saying... (9 Replies)
Discussion started by: ramkrix
9 Replies

8. Programming

c system call

How the c compiler differentiates the system calls and function calls? (1 Reply)
Discussion started by: rangaswamy
1 Replies

9. UNIX for Advanced & Expert Users

how to differentiate system call from library call

Hi, Ho do I differentiate system call from library call? for example if I am using chmod , how do I find out if it is a system call or library call? Thanks Muru (2 Replies)
Discussion started by: muru
2 Replies

10. Programming

wait system call

hi there, i had some trivial questions about this program here. i am kinda confused with these, hope you can help me to understand here. :) #include<stdio.h> #include<sys/wait.h> #include<sys/types.h> #include<unistd.h> int main(void) { int... (2 Replies)
Discussion started by: a25khan
2 Replies
Login or Register to Ask a Question