nbd_get_request_extended_headers(3)

πŸ’… nbd_get_request_extended_headers(3) β€” like, the libnbd glow-up page

okay bestie, so this is a page from the LIBNBD manual (yes, that libnbd) and it's all about one lil function that tells you whether extended headers are even being attempted. no cap, that's it. let's get into it πŸŽ€


✨ NAME ✨

nbd_get_request_extended_headers β€” see if extended headers are attempted πŸ‘€


🌸 SYNOPSIS 🌸

#include <libnbd.h>

int nbd_get_request_extended_headers (
      struct nbd_handle *h
    );

πŸ¦‹ DESCRIPTION πŸ¦‹

So this one returns the state of the request extended headers flag on this handle. literally just hands you back the flag's vibe check, nothing more πŸ’…

⚠️ Note, bestie, this is important: if you wanna find out whether extended headers were actually negotiated on a particular connection, use nbd_get_extended_headers_negotiated(3) instead. this function is about the request flag, not the real-life negotiated result. iykyk 🧚

⭐ RETURN VALUE ⭐

This call returns a boolean value. that's the whole tea πŸ“


πŸ’œ ERRORS πŸ’œ

This function does not fail. periodt, she's unbothered, she's thriving πŸ”₯

The following parameters must not be NULL: "h". For more information see "Non-NULL parameters" in libnbd(3). like, do not pass her a NULL bestie, she will not be okay with that πŸ™ˆ


πŸŽ€ VERSION πŸŽ€

This function first appeared in libnbd 1.18. iconic behavior honestly πŸ‘‘

If you need to test if this function is available at compile time, check if the following macro is defined:

#define LIBNBD_HAVE_NBD_GET_REQUEST_EXTENDED_HEADERS 1

🌈 SEE ALSO 🌈

go read those too, they're all in the same friend group 🫢


🌸 AUTHORS 🌸

  • Eric Blake
  • Richard W.M. Jones

Copyright Red Hat


πŸ“œ LICENSE πŸ“œ

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA


okay that's the whole page, mwah πŸ’‹ this was libnbd-1.25.8, dated 2026-10-1 β€” slay, go forth and check your flags bestie πŸ’–βœ¨

πŸ“¦ where this page comes from