public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* why "probe_kernel_address()", not "probe_user_address()"?
@ 2006-10-28 15:56 Robert P. J. Day
  2006-10-28 16:29 ` Andrew Morton
  0 siblings, 1 reply; 8+ messages in thread
From: Robert P. J. Day @ 2006-10-28 15:56 UTC (permalink / raw)
  To: Linux Kernel Mailing List


  it seems odd that the purpose of the "probe_kernel_address()" macro
is, in fact, to probe a *user* address (from linux/uaccess.h):

#define probe_kernel_address(addr, retval)              \
        ({                                              \
                long ret;                               \
                                                        \
                inc_preempt_count();                    \
                ret = __get_user(retval, addr);         \
                dec_preempt_count();                    \
                ret;                                    \
        })

  given that that routine is referenced only 5 places in the entire
source tree, wouldn't it be more meaningful to use a more appropriate
name?

pedantically yours,
rday

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-10-29 15:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-28 15:56 why "probe_kernel_address()", not "probe_user_address()"? Robert P. J. Day
2006-10-28 16:29 ` Andrew Morton
2006-10-28 16:52   ` Robert P. J. Day
2006-10-28 17:02   ` Robert P. J. Day
2006-10-28 20:30     ` Luca Tettamanti
2006-10-28 21:01       ` Robert P. J. Day
2006-10-29 15:49         ` Luca Tettamanti
2006-10-29 13:02       ` Denis Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox