public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* syscall(2)
@ 2017-03-05  8:08 Victor Khimenko
       [not found] ` <CABLBYvTBKvQXSmiGx3LOUoFHZDGAMmNCofcuHTiKW51kS2bh4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Victor Khimenko @ 2017-03-05  8:08 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA

syscall(2) example includes the following snippet which explains how to
call readahead on ARM:

       syscall(SYS_readahead, fd, 0,
                   (unsigned int) (offset >> 32),
                   (unsigned int) (offset & 0xFFFFFFFF),
                   count);

But ARM EABI specifies that "A double-word sized type is passed in two
consecutive registers (e.g., r0 and r1, or r2 and r3). The content of
the registers is as if the value had been loaded from memory representation
with a single LDM instruction."

This would imply that arguments are swapped around in the man page, no?

I've tried to experiement and with ftruncate, at least, it works like
this...
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-03-12  9:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-05  8:08 syscall(2) Victor Khimenko
     [not found] ` <CABLBYvTBKvQXSmiGx3LOUoFHZDGAMmNCofcuHTiKW51kS2bh4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-06 11:01   ` syscall(2) Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAkg1iRisrd18WHn64j1NWAs2T0hrsc7dRoZs4XPV_22uhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-06 19:08       ` syscall(2) Mike Frysinger
2017-03-07 12:05         ` syscall(2) walter harms
     [not found]           ` <58BEA1F3.2070502-fPG8STNUNVg@public.gmane.org>
2017-03-07 21:51             ` syscall(2) Victor Khimenko
     [not found]               ` <CABLBYvRKpgpg9cHMksP3v0StizrZKKYO0ih4E90vc7dti4cgfw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-07 22:51                 ` syscall(2) Mike Frysinger
2017-03-11  3:16   ` [PATCH] syscall(2): add endian details with 64-bit splitting Mike Frysinger
     [not found]     ` <20170311031600.717-1-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2017-03-11 18:04       ` Victor Khimenko
2017-03-11 19:54       ` [PATCH v2] " Mike Frysinger
     [not found]         ` <20170311195422.3479-1-vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2017-03-12  4:31           ` Victor Khimenko
     [not found]             ` <CABLBYvROUxy+NyDwQwDZw57KbC6igHoCKbJ6oYjA3j+rQVteEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-12  9:49               ` Michael Kerrisk (man-pages)
2017-03-12  9:48           ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox