Skip to content

Commit

Permalink
libvmi:libvmi_cdef: Add vmi_pagecache_flush
Browse files Browse the repository at this point in the history
  • Loading branch information
netanelc305 committed Dec 5, 2023
1 parent dfc66b9 commit 4b1e816
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libvmi/libvmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,9 @@ def pidcache_flush(self):
def pidcache_add(self, pid, dtb):
lib.vmi_pidcache_add(self.vmi, pid, dtb)

def pagecache_flush(self):
lib.vmi_pagecache_flush(self.vmi)

# events
def register_event(self, event):
event.vmi = self
Expand Down
3 changes: 3 additions & 0 deletions libvmi/libvmi_cdef.h
Original file line number Diff line number Diff line change
Expand Up @@ -981,3 +981,6 @@ void vmi_pidcache_add(
vmi_instance_t vmi,
vmi_pid_t pid,
addr_t dtb);

void vmi_pagecache_flush(
vmi_instance_t vmi);

0 comments on commit 4b1e816

Please sign in to comment.