Linus Torvalds writes: (Summary)
Ack.
Ack.
Is that "long long" part of the example on purpose? And "long long" is the simplest example, even though in practice the type is most often "loff_t".
"loff_t".
You won't see this on 64-bit architectures, but it's visible on 32-bit ones. See for example
example
COMPAT_SYSCALL_DEFINE5(preadv, compat_ulong_t, fd,
const struct compat_iovec __user *,vec,
compat_ulong_t, vlen, u32, pos_low, u32, pos_high)
Ack.
Is that "long long" part of the example on purpose? And "long long" is the simplest example, even though in practice the type is most often "loff_t".
"loff_t".
You won't see this on 64-bit architectures, but it's visible on 32-bit ones. See for example
example
COMPAT_SYSCALL_DEFINE5(preadv, compat_ulong_t, fd,
const struct compat_iovec __user *,vec,
compat_ulong_t, vlen, u32, pos_low, u32, pos_high)
{ loff_t pos = ((loff_t)pos_high <<