Re: [RFC] vfs_parse_fs_string() calling conventions change (was Re: [PATCH v2 17/35] sanitize handling of long-term internal mounts)

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

 



On Mon, 30 Jun 2025 at 09:55, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> > Is any arch other than i386 limited to fewer than four register arguments?
>
> amd64, for one

No, x86-64 has 6 argument registers.

Anyway, the use of 'qstr' doesn't actually change any of that, since
it will use exactly the same number of argument registers as having
separate 'char *, len' arguments.

But the thing that makes qstr nice is that it's not only a good
abstraction, we also have useful helper macros for exactly this use.

IOW, instead of passing in "name, strlen(name)", you can use
"QSTR(name)" which does exactly that.

             Linus




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux