Linux Services





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
LINUX Services
LINUX Services Introduction, Important Run-level application Introduction
LINUX Run-level application RunLevels
How to start a service in linux Starting Services
LINUX Services Listing Services
LINUX Services Introduction, Important Run-level application Services in A
LINUX Services Introduction, Important Run-level application Services in B
LINUX Services Introduction, Important Run-level application Services in C
LINUX Services Introduction, Important Run-level application Services in D
LINUX Services Introduction, Important Run-level application Services in E
LINUX Services Introduction, Important Run-level application Services in F
LINUX Services Introduction, Important Run-level application Services in G
LINUX Services Introduction, Important Run-level application Services in H
LINUX Services Introduction, Important Run-level application Services in I
LINUX Services Introduction, Important Run-level application Services in K
LINUX Services Introduction, Important Run-level application Services in L
LINUX Services Introduction, Important Run-level application Services in M
LINUX Services Introduction, Important Run-level application Services in N
LINUX Services Introduction, Important Run-level application Services in O
LINUX Services Introduction, Important Run-level application Services in P
LINUX Services Introduction, Important Run-level application Services in R
LINUX Services Introduction, Important Run-level application Services in S
LINUX Services Introduction, Important Run-level application Services in T
LINUX Services Introduction, Important Run-level application Services in U
LINUX Services Introduction, Important Run-level application Services in V
LINUX Services Introduction, Important Run-level application Services in W
LINUX Services Introduction, Important Run-level application Services in X
LINUX Services Introduction, Important Run-level application Services in Y
LINUX Services Introduction, Important Run-level application Services in Z
Forums Ask your doubts
LINUX Services Introduction, Important Run-level application More about Linux
LINUX Services Introduction, Important Run-level application Feedback
 





readahead Linux Service

Tutorials Linux-services

Topic

What is readahead?
readahead Linux service



Explanation

readahead service:
     The readahead process preloads the buffer cache with files that might be paged in one 'page demand triggered' read at a time.
Required(ON/OFF):      View complete List of Services
Home PC : NO
Server  : NO

     Now lets see the manual of readahead service.

Manual readahead:
NAME
readahead - Read in advance one or more pages of a file within a page cache

SYNOPSIS
#include <unistd.h>

ssize_t sys_readahead (int fd, loff_t offset, size_t count);

DESCRIPTION
readahead reads count pages in the page cache. If a page is not in the page cache, it is added to the page cache.

fd is the file descriptor of the file being read. offset is the location within the file to start reading. A page in the page cache is identified by a file's inode and by the offset within the file. fd and offset are used to identify the page in the page cache.

The offset is incremented by one to read the next page until count pages are read. If count pages is larger than the size of the file, then only up to the size of the file is read.

RETURN VALUE
readahead returns 0 on success; otherwise, it returns the error listed in the "Errors" section. If the offset specified is greater than the size of the file, then nothing is read and 0 is returned.

ERRORS
EBADF readahead was not able to get the file.

AUTHOR
Joy Latten.
rawdevices readahead_early



A Note

List of Linux Services at Runlevels. Hope you enjoy this tutorial. We welcome your Valuable feedbacks or suggestions on this LINUX Services. This is a copyright content.


Other Links

web hosting

 

Free Hosting

Top Hosting Companies