.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "KMEM_PTR_VALIDATE" "9" "09 October 2005" "" "" .SH NAME kmem_ptr_validate \- check if an untrusted pointer might .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int fastcall kmem_ptr_validate (kmem_cache_t * \fIcachep\fB, void * \fIptr\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcachep\fB\fR the cache we're checking against .TP \fB\fIptr\fB\fR pointer to validate .SH "DESCRIPTION" .PP be a slab entry. .SH "THIS VERIFIES THAT THE UNTRUSTED POINTER LOOKS SANE" .PP it is _not_ a guarantee that the pointer is actually part of the slab cache in question, but it at least validates that the pointer can be dereferenced and looks half-way sane. .PP Currently only used for dentry validation.