This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: loc2c-runtime deref()
- From: Roland McGrath <roland at redhat dot com>
- To: fche at redhat dot com (Frank Ch. Eigler)
- Cc: systemtap at sources dot redhat dot com
- Date: Thu, 18 Aug 2005 14:36:03 -0700 (PDT)
- Subject: Re: loc2c-runtime deref()
> Then can you please educate me/us about how come your macros call
> __get_user_asm, the same routines defined in asm/uaccess.h that are
> used for get_user(), copy_from_user(), and so on?
__get_user_asm is a handy macro that implements the fetch with fault
recovery. Read the uaccess.h code to see what it does. It doesn't have
anything to do with checking user-mode pointers per se. It's just named
that because it's a subroutine of the user-access macros. I provided
macros that work. If you want to comment them better or implement them in
ways that don't use identifiers you don't like, feel free.
Thanks,
Roland