Print this page
3946 ::gcore
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>

@@ -20,13 +20,14 @@
  */
 /*
  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
+/*
+ * Copyright (c) 2013 by Delphix. All rights reserved.
+ */
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
 #include <stdarg.h>
 #include <string.h>
 #include "Pcontrol.h"
 
 /*

@@ -54,19 +55,19 @@
 }
 
 ps_err_e
 ps_pread(struct ps_prochandle *P, psaddr_t addr, void *buf, size_t size)
 {
-        if (P->ops->p_pread(P, buf, size, addr) != size)
+        if (P->ops.pop_pread(P, buf, size, addr, P->data) != size)
                 return (PS_BADADDR);
         return (PS_OK);
 }
 
 ps_err_e
 ps_pwrite(struct ps_prochandle *P, psaddr_t addr, const void *buf, size_t size)
 {
-        if (P->ops->p_pwrite(P, buf, size, addr) != size)
+        if (P->ops.pop_pwrite(P, buf, size, addr, P->data) != size)
                 return (PS_BADADDR);
         return (PS_OK);
 }
 
 /*