mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* ok, maybe i misread that whole "kmem_cache_alloc()" thing
@ 2006-12-19 23:32 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2006-12-19 23:32 UTC (permalink / raw)
  To: Linux kernel mailing list


  all right, i may have misread what's going on with
kmem_cache_alloc() and kmem_cache_zalloc(), and my earlier submission
may be entirely nonsense, since it involved transformations like this:

         * it with privilege level 3 because the IVE uses non-privileged accesses to these
         * tables.  IA-32 segmentation is used to protect against IA-32 accesses to them.
         */
-       vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL);
+       vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL);
        if (vma) {
-               memset(vma, 0, sizeof(*vma));
                vma->vm_mm = current->mm;
                vma->vm_start = IA32_GDT_OFFSET;
                vma->vm_end = vma->vm_start + PAGE_SIZE;


can someone briefly tell me if what i did makes sense?

rday

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-12-19 23:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-19 23:32 ok, maybe i misread that whole "kmem_cache_alloc()" thing Robert P. J. Day

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

all inboxes | Powered by JetHome®