Thread (20 messages) 20 messages, 3 authors, 2019-10-02

Re: [PATCH v3] apparmor: Use a memory pool instead per-CPU caches

From: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
Date: 2019-05-03 12:42:09

On 2019/05/03 20:51, Sebastian Andrzej Siewior wrote:
+void aa_put_buffer(char *buf)
+{
+	union aa_buffer *aa_buf;
+
buf == NULL if aa_put_buffer() was called due to aa_get_buffer() == NULL.
+	aa_buf = container_of(buf, union aa_buffer, buffer[0]);
+
+	spin_lock(&aa_buffers_lock);
+	list_add(&aa_buf->list, &aa_global_buffers);
+	spin_unlock(&aa_buffers_lock);
+}
+
 /*
  * AppArmor init functions
  */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help