… | |
… | |
2485 | C<undef>. If the memfd_create syscall is missing, fails with C<ENOSYS>. |
2485 | C<undef>. If the memfd_create syscall is missing, fails with C<ENOSYS>. |
2486 | |
2486 | |
2487 | Please refer to L<memfd_create(2)> for more info on this call. |
2487 | Please refer to L<memfd_create(2)> for more info on this call. |
2488 | |
2488 | |
2489 | The following C<$flags> values are available: C<IO::AIO::MFD_CLOEXEC>, |
2489 | The following C<$flags> values are available: C<IO::AIO::MFD_CLOEXEC>, |
2490 | C<IO::AIO::MFD_ALLOW_SEALING> and C<IO::AIO::MFD_HUGETLB>. |
2490 | C<IO::AIO::MFD_ALLOW_SEALING>, C<IO::AIO::MFD_HUGETLB>, |
|
|
2491 | C<IO::AIO::MFD_HUGETLB_2MB> and C<IO::AIO::MFD_HUGETLB_1GB>. |
2491 | |
2492 | |
2492 | Example: create a new memfd. |
2493 | Example: create a new memfd. |
2493 | |
2494 | |
2494 | my $fh = IO::AIO::memfd_create "somenameforprocfd", IO::AIO::MFD_CLOEXEC |
2495 | my $fh = IO::AIO::memfd_create "somenameforprocfd", IO::AIO::MFD_CLOEXEC |
2495 | or die "memfd_create: $!\n"; |
2496 | or die "memfd_create: $!\n"; |