There isn't any (except maybe the talk I gave at Linux Kongress
last year (http://www.canb.auug.org.au/~sfr/idle.html).
> As far as I figured out process holding a lease is notified when other
> process opens the leased file. But I am still not sure how the leases
> should then be released and how the process knows which lease was broken
> (struct siginfo does not seem to have union member for that case).
To release a lease, you use fcntl(fd, F_SETLEASE, F_UNLCK). The file
descriptor of the file that the lease is on is returned in the
siginfo structure.
-- Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ - 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/