|
@@ -276,6 +276,17 @@ static inline void *kzalloc(size_t size, gfp_t flags)
|
|
|
return kmalloc(size, flags | __GFP_ZERO);
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * kzalloc_node - allocate zeroed memory from a particular memory node.
|
|
|
+ * @size: how many bytes of memory are required.
|
|
|
+ * @flags: the type of memory to allocate (see kmalloc).
|
|
|
+ * @node: memory node from which to allocate
|
|
|
+ */
|
|
|
+static inline void *kzalloc_node(size_t size, gfp_t flags, int node)
|
|
|
+{
|
|
|
+ return kmalloc_node(size, flags | __GFP_ZERO, node);
|
|
|
+}
|
|
|
+
|
|
|
#ifdef CONFIG_SLABINFO
|
|
|
extern const struct seq_operations slabinfo_op;
|
|
|
ssize_t slabinfo_write(struct file *, const char __user *, size_t, loff_t *);
|