× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



-----Original Message-----
From: mi400-bounces@xxxxxxxxxxxx [mailto:mi400-bounces@xxxxxxxxxxxx]On
Behalf Of Peter Daransky
Sent: Friday, June 17, 2005 9:59 PM
To: c400@xxxxxxxxxxxx
Cc: mi400@xxxxxxxxxxxx
Subject: [MI400] Write System Pointer to User Space


>I try to write resolved system pointer of one object to user space ... 
>But it doesn't work for me!? Better sayed i've a C structure with many 
>variables and my wish is >write it complet as a block of data to user space, 
>so that i can later read it with the resolved >pointer ... 
>Do i need perform something special (API or MI instruction ...) ? 

Hi Peter,

This should work. Make sure you are not doing a memcpy copy of the struct to 
the user space. That would invalidate the system pointer contained in the 
struct.  Also, make sure of the alignment of the data members of the struct.  
Pointers need to be on a 16 byte boundary and it is possible in C to pack the 
struct, which might throw off the alignment of the pointers.

-Steve




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.