[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201001021611.52672.oliver@neukum.org>
Date: Sat, 2 Jan 2010 16:11:52 +0100
From: Oliver Neukum <oliver@...kum.org>
To: Bartłomiej Zimoń <uzi18@...pl>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [suspend/resume] Re: userspace notification from module
Am Samstag, 2. Januar 2010 15:27:12 schrieb Bartłomiej Zimoń:
> > Register your pids to the kernel module, e.g. via ioctl, and if the
> > (intra-kernel) notification will be delivered to your module you just
> > send a signal to your registered processes via kill_proc_info(). Guess
> > this is at least better than polling a file or sth similar.
> >
> > I guess netlink could be the "cleaner" solution, but with more overhead?!
> >
>
> This looks like more simple and could be good, after all i think about sending this
> module here to add to kernel. So if this solution could be ok i will start to code this part.
This has all sorts of implications starting with fork() and going to passing
fds over sockets and so on. It is a very bad idea. Use a standard device
and all infrastructure for getting SIGIO is in place.
Regards
Oliver
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists