Skip to content

Commit 60bdec8

Browse files
committed
update kernelcache scripting docs
1 parent 98f9bae commit 60bdec8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/guide/kernelcache.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ Another way to interact with the kernel cache information is through the provide
7878
```python
7979
# Load the XNU kernel
8080
from binaryninja import kernelcache
81-
kc = kernelcache.KernelCache(bv)
82-
kc.load_image_with_install_name('com.apple.kernel')
81+
kc = kernelcache.KernelCacheController(bv)
82+
image = kc.get_image_with_name('com.apple.kernel')
83+
kc.apply_image(bv, image)
8384
```
8485

86+
???+ Note "Note"
87+
When using the Python console in the UI, the `kernel_cache` variable is automatically available for the current view.
88+
8589
**Note:** *We do not support single-section loading at this time and can only load entire images.*

0 commit comments

Comments
 (0)