fdt_check_header() 是libfdt 库中的一个函数,用于检查一个设备树(Flattened Device Tree,简称 FDT)的头信息是否有效。libfdt 是一个用于处理设备树数据的库,通常用在基于 Linux 的嵌入式系统中。 fdt_err_badmagic 是fdt_check_header() 函数可能返回的一个错误码,表示设备树的头信息中的“magic number”不正确。
if (fdt_size_dt_struct(fdt) == 0) if (!can_assume(VALID_INPUT) && fdt_size_dt_struct(fdt) == 0) return -FDT_ERR_BADSTATE; } else { return -FDT_ERR_BADMAGIC; } if (totalsize < INT32_MAX) return totalsize; else return -FDT_ERR_TRUNCATED; } static int check_off_(uint32_t...
* -FDT_ERR_BADMAGIC, * -FDT_ERR_BADVERSION * -FDT_ERR_BADSTATE, * -FDT_ERR_BADSTRUCTURE * -FDT_ERR_TRUNCATED, standard meanings */ int fdt_addresscells(const void *fdt, nodeoffset); /*** fdt_size_cells - retrieveaddress range sizefor a bus represented inthe * tree...
NODE tag * -FDT_ERR_NOSPACE, the path of the node is longer than (bufsize-1) * characters and will not fitin the given buffer. * -FDT_ERR_BADMAGIC, * -FDT_ERR_BADVERSION * -FDT_ERR_BADSTATE, * -FDT_ERR_BADSTRUCTURE, standard meanings...
terminated string. * -FDT_ERR_BADOFFSET, nodeoffset does not refer to a BEGINNODE tag * -FDT_ERR_NOSPACE, the path of the node is longer than (bufsize-1) * characters and will not fitin the given buffer. * -FDT_ERR_BADMAGIC, * -FDT_ERR_BADVERSION * -FDT_ERR_BAD...
/* Error codes: codes for bad device tree blobs */ Nov 13, 2007 libfdt: Add phandle related functions Nov 13, 2007 51 #defineFDT_ERR_TRUNCATED8 Jun 7, 2018 libfdt: Make fdt_check_header() more thorough Jun 7, 2018 52 53 54
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
NODE tag * -FDT_ERR_NOSPACE, the path of the node is longer than (bufsize-1) * characters and will not fitin the given buffer. * -FDT_ERR_BADMAGIC, * -FDT_ERR_BADVERSION * -FDT_ERR_BADSTATE, * -FDT_ERR_BADSTRUCTURE, standard meanings...
NODE tag * -FDT_ERR_NOSPACE, the path of the node is longer than (bufsize-1) * characters and will not fitin the given buffer. * -FDT_ERR_BADMAGIC, * -FDT_ERR_BADVERSION * -FDT_ERR_BADSTATE, * -FDT_ERR_BADSTRUCTURE, standard meanings...
fdt_addresses.c fdt_check.c fdt_empty_tree.c fdt_overlay.c fdt_ro.c fdt_rw.c fdt_strerror.c fdt_sw.c fdt_wip.c libfdt.h libfdt_env.h libfdt_internal.h version.lds pylibfdt scripts tests .cirrus.yml .editorconfig .gitignore