Re: [RFC] 0/11 fanotify: fscking all notifiction and file access system (intended for antivirus scanning and file indexers)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

> struct fan_sockaddr {

Usual way socket stuff covers for that is to stick

	unsigned int __unused[8];

or similar on the end...


That is the normal socket approach. Eg in traditional BSD interfaces for
IP routing you created an AF_INET socket and frobbed with it.


Probably a lot saner


Not really. Lots of socket types have operations that are essentially

	fd = socket(...)
	ioctl(fd, ....);
	close(fd);

or similar. Traditionally ioctl is used for system changing stuff but
that is just tradition.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] 0/11 fanotify: fscking all notifiction and file ..., Alan Cox, (Thu Oct 2, 1:48 pm)