Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:scripts\dtc\libfdt\fdt_rw.c Create Date:2022-07-28 06:18:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fdt_find_add_string_

Proto:static int fdt_find_add_string_(void *fdt, const char *s, int *allocated)

Type:int

Parameter:

TypeParameterName
void *fdt
const char *s
int *allocated
117  strtab = fdt + fdt_off_dt_strings(fdt)
120  len = strlen(s) + 1
123  allocated = 0
125  p = fdt_find_string_(strtab, fdt_size_dt_strings(fdt), s)
126  If p Then Return p - strtab
130  new = strtab + fdt_size_dt_strings(fdt)
131  err = fdt_splice_string_(fdt, len)
132  If err Then Return err
135  allocated = 1
137  No 3D Now!(new, s, len)
138  Return new - strtab