Re: fop->llseek() ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 3 Dec 2001, Daniel Marian wrote:

> Hello,
>  The llseek function declared in file_operations structure is :
>
> loff_t (*llseek) (struct file *, loff_t, int)
>
> Here what is the third(3rd) parameter used for, is it
> same as the "whence" parameter of fseek() function in libc ?
> and what are the relevant values it can take ?
> Is there something similar to(SEEK_SET, SEEK_CUR, SEEK_END)
> which can be assigned to the 3rd parameter of the llseek
> function.

Yes it is the same.

Cheers,
Zwane Mwaikambo


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux