2 * Copyright (c) 2018 The strace developers.
4 * SPDX-License-Identifier: LGPL-2.1-or-later
7 #include "mmap_notify.h"
9 struct mmap_notify_client {
12 struct mmap_notify_client *next;
15 static struct mmap_notify_client *clients;
18 mmap_notify_register_client(mmap_notify_fn fn, void *data)
20 struct mmap_notify_client *client = xmalloc(sizeof(*client));
23 client->next = clients;
28 mmap_notify_report(struct tcb *tcp)
30 struct mmap_notify_client *client;
32 for (client = clients; client; client = client->next)
33 client->fn(tcp, client->data);