MCPcopy Index your code
hub / github.com/F-Stack/f-stack / kresolve_list

Function kresolve_list

tools/netstat/main.c:796–815  ·  view source on GitHub ↗

* Resolve symbol list, return 0 on success. */

Source from the content-addressed store, hash-verified

794 * Resolve symbol list, return 0 on success.
795 */
796static int
797kresolve_list(struct nlist *_nl)
798{
799
800 if ((kvmd == NULL) && (kvmd_init() != 0))
801 return (-1);
802
803 if (_nl[0].n_type != 0)
804 return (0);
805
806 if (kvm_nlist(kvmd, _nl) < 0) {
807 if (nlistf)
808 xo_errx(1, "%s: kvm_nlist: %s", nlistf,
809 kvm_geterr(kvmd));
810 else
811 xo_errx(1, "kvm_nlist: %s", kvm_geterr(kvmd));
812 }
813
814 return (0);
815}
816
817/*
818 * Wrapper of kvm_dpcpu_setcpu().

Callers 1

main.cFile · 0.85

Calls 2

kvmd_initFunction · 0.85
xo_errxFunction · 0.85

Tested by

no test coverage detected