resources: add interfaces that return conflict information
authorBjorn Helgaas <bjorn.helgaas@hp.com>
Fri, 12 Mar 2010 00:01:09 +0000 (17:01 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Mar 2010 20:33:50 +0000 (13:33 -0700)
commit66f1207bce10fd80ee8ce99b67d617644612f05e
tree3031bb74dce8c54af69dcd4aa7e566f40a5511ce
parent7c9e2b1c4784c6e574f69dbd904b2822f2e04d6e
resources: add interfaces that return conflict information

request_resource() and insert_resource() only return success or failure,
which no information about what existing resource conflicted with the
proposed new reservation.  This patch adds request_resource_conflict()
and insert_resource_conflict(), which return the conflicting resource.

Callers may use this for better error messages or to adjust the new
resource and retry the request.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
include/linux/ioport.h
kernel/resource.c