- Timestamp:
- Sep 6, 2022, 11:14:39 AM (3 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 2 edited
-
include/linux/slab.h (modified) (1 diff)
-
lib32/memory.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/slab.h
r725 r726 92 92 * @flags: the type of memory to allocate (see kmalloc). 93 93 */ 94 static inline void *kzalloc(size_t size, gfp_t flags) 95 { 96 return __kmalloc(size, flags | __GFP_ZERO); 97 } 98 94 void *kzalloc(size_t n, gfp_t gfp_flags); 99 95 void *kcalloc(size_t n, size_t size, unsigned int __nocast gfp_flags); 100 96 void *krealloc(const void *, size_t, gfp_t); -
GPL/branches/uniaud32-next/lib32/memory.c
r725 r726 610 610 611 611 //****************************************************************************** 612 //****************************************************************************** 612 613 #ifdef DEBUGHEAP 613 614 void *__kmalloc(int size, int flags, const char *filename, int lineno) … … 644 645 645 646 //****************************************************************************** 647 //****************************************************************************** 646 648 #ifdef DEBUGHEAP 647 649 void __kfree(const void *ptr, const char *filename, int lineno) … … 669 671 } 670 672 673 //****************************************************************************** 674 //****************************************************************************** 675 void *kzalloc(size_t size, unsigned int flags) 676 { 677 void *ret; 678 ret = _kmalloc(size, flags); 679 if (ret) 680 memset(ret, 0, size); 681 return ret; 682 } 671 683 //****************************************************************************** 672 684 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.
