Messages in this thread | | | Date | Tue, 21 Dec 2004 15:46:24 +0100 (MET) | From | Jan Engelhardt <> | Subject | Re: at_fork & at_exit |
| |
> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |