Home
last modified time | relevance | path

Searched refs:fp_old (Results 1 – 2 of 2) sorted by relevance

/OK3568_Linux_fs/kernel/kernel/bpf/
H A Dcore.c225 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, in bpf_prog_realloc() argument
235 if (pages <= fp_old->pages) in bpf_prog_realloc()
236 return fp_old; in bpf_prog_realloc()
238 delta = pages - fp_old->pages; in bpf_prog_realloc()
239 ret = __bpf_prog_charge(fp_old->aux->user, delta); in bpf_prog_realloc()
245 __bpf_prog_uncharge(fp_old->aux->user, delta); in bpf_prog_realloc()
247 memcpy(fp, fp_old, fp_old->pages * PAGE_SIZE); in bpf_prog_realloc()
254 fp_old->aux = NULL; in bpf_prog_realloc()
255 __bpf_prog_free(fp_old); in bpf_prog_realloc()
/OK3568_Linux_fs/kernel/include/linux/
H A Dfilter.h872 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size,