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 π
nbd_create(3)nbd_get_extended_headers_negotiated(3)nbd_get_request_extended_headers(3)nbd_set_request_extended_headers(3)libnbd(3)
go read those too, they're all in the same friend group π«Ά
πΈ AUTHORS πΈ
- Eric Blake
- Richard W.M. Jones
π COPYRIGHT π
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
- centos-stream 10: libnbd-devel 1.25.8-1.el10 Β· LGPL-2.0-or-later AND BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms