>
> is there any other ioctl that will flush the buffer for me so that the next
> read will be done directly from the disk !!

int ioctl(int fildes, int request, ... /* arg */);
The ioctl() commands applicable to STREAMS, their arguments, and error statuses
that apply to each
    individual command are described below.

    The following ioctl() commands, with error values indicated, are applicable
to all STREAMS files:
++++cut+++++
I_FLUSH
        This request flushes read and/or write queues, depending on the value
of arg. Valid arg values are:
        FLUSHR
            Flush all read queues.
        FLUSHW
            Flush all write queues.
        FLUSHRW
            Flush all read and all write queues.

        The ioctl() function with the I_FLUSH command will fail if:
        [EINVAL]
            Invalid arg value.
        [EAGAIN] or [ENOSR]
            Unable to allocate buffers for flush message.
        [ENXIO]
            Hangup received on fildes.

    I_FLUSHBAND
        Flushes a particular band of messages. The arg argument points to a
bandinfo structure. The bi_flag
        member may be one of FLUSHR, FLUSHW, or FLUSHRW as described above. The
bi_pri member
        determines the priority band to be flushed.
++++++cut++++++++++
sorry for this answer...bear with me
i will be with a better answer.

-gaurav.
--
  _
|^|^|                         -^-                     Love to Linux
 \-/ G  A  U  R  A  V          |
mailto:[EMAIL PROTECTED] / mailto:[EMAIL PROTECTED]
  | Sea/She is nature's art/\/ Everybody likes to get the feel of it
|-=-----------------------/-----------------------------------------|
|_|f  I  can  I m a g i n/e  it  I  can  A c h i e v e  it_._.-.-._.|



-----------------------------------------------------------------------
For information on this and other Linux India mailing lists check out
http://lists.linux-india.org/

Reply via email to