All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] thread_info.h use kzalloc
@ 2006-07-11 16:47 tom hisch
  2006-07-11 17:05 ` Nishanth Aravamudan
  2006-07-11 17:09 ` Alexey Dobriyan
  0 siblings, 2 replies; 3+ messages in thread
From: tom hisch @ 2006-07-11 16:47 UTC (permalink / raw)
  To: kernel-janitors


[-- Attachment #1.1: Type: text/plain, Size: 878 bytes --]

hello,

i have some questions about the alloc_thread_info(tsk) macro in
asm-i386/thread_info.h


/* thread information allocation */
#ifdef CONFIG_DEBUG_STACK_USAGE
#define alloc_thread_info(tsk)                                  \
        ({                                                      \
                struct thread_info *ret;                        \
                                                                \
------>      ret = kmalloc(THREAD_SIZE, GFP_KERNEL);         \  //  what
about the use of kzalloc ??
                if (ret)                                        \
                        memset(ret, 0, THREAD_SIZE);            \
------>      ret;                                            \    // whats
the meaning of this instruction ??
        })
#else
#define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL)
#endif

thanks
tom hisch

[-- Attachment #1.2: Type: text/html, Size: 2728 bytes --]

[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

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

end of thread, other threads:[~2006-07-11 17:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-11 16:47 [KJ] thread_info.h use kzalloc tom hisch
2006-07-11 17:05 ` Nishanth Aravamudan
2006-07-11 17:09 ` Alexey Dobriyan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.