MCPcopy Create free account
hub / github.com/qilingframework/qiling / hook__vn_getpath

Function hook__vn_getpath

qiling/os/macos/kernel_api/kernel_api.py:905–911  ·  view source on GitHub ↗
(ql, address, params)

Source from the content-addressed store, hash-verified

903 "len": POINTER,
904})
905def hook__vn_getpath(ql, address, params):
906 vp = vnode_t(ql, params["vp"])
907 vp = vp.loadFromMem()
908 name = ql.mem.string(vp.v_name.value).encode()
909 ql.mem.write(params["pathbuf"], name)
910 ql.mem.write(params["len"], struct.pack("<I", len(name)))
911 return 0
912
913@macos_kernel_api(params={
914 "continuation": POINTER,

Callers

nothing calls this directly

Calls 5

vnode_tClass · 0.85
stringMethod · 0.80
loadFromMemMethod · 0.45
writeMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected