Re: at_fork & at_exit

From: Jan Engelhardt
Date: Tue Dec 21 2004 - 09:49:04 EST


> Hi,
>
> Im looking for linux equivalent of the FreeBSD calls:
>
> 1. at_fork
>
> typedef void
> (*forklist_fn)(struct proc *, struct proc *, int);
>
> int at_fork(forklist_fn func);

I do not see such a hook in the kernel source tree, so adding your own seems
to only way.

The places are in kernel/fork.c:copy_process() and
kernel/exit.c:__unhash_process



Jan Engelhardt
--
ENOSPC
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/