arm_fadvise() man page

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

 



[Was: man pages for undocumented system calls]

Stephan,

The situation here is similar to sync_file_range, but specific to ARM.
The documentation would better be in the posix_fadvise() page, should
explicitly note that this system call is for ARM only, and should note
why the system call exists. For man-pages-3.29, I applied the patch
below.

Thanks,

Michael

--- a/man2/posix_fadvise.2
+++ b/man2/posix_fadvise.2
@@ -148,6 +149,30 @@ call
 or
 .BR fdatasync (2)
 first.
+.SS arm_fadvise()
+The ARM architecture
+needs 64-bit arguments to be aligned in a suitable pair of registers.
+On this architecture, the call signature of
+.BR posix_fadvise ()
+is flawed, since it forces a register to be wasted as padding between the
+.I fd
+and
+.I len
+arguments.
+Therefore, since Linux 2.6.14, ARM defines a different
+system call that orders the arguments suitably:
+.PP
+.in +4n
+.nf
+.BI "long arm_fadvise64_64(int " fd ", int " advice ,
+.BI "                     loff_t " offset ", loff_t " len );
+.fi
+.in
+.PP
+The behavior of this system call is otherwise exactly the same as
+.BR posix_fadvise().
+No library support is provided for this system call in glibc.
+.\" No ARM support in glibc.
 .SH BUGS
 In kernels before 2.6.6, if
 .I len

-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux