diff options
author | 2010-09-02 18:20:58 +0530 | |
---|---|---|
committer | 2010-10-21 17:44:03 +1030 | |
commit | 04950cdf071b6e5aa4794c93ad3e3ce8a1c4aa8c (patch) | |
tree | 24a8d32ee63ef7c0a634e67dc67fdef0f84a14a6 /arch/x86/mm/fault.c | |
parent | virtio: console: Add a list of portdevs that are active (diff) | |
download | linux-dev-04950cdf071b6e5aa4794c93ad3e3ce8a1c4aa8c.tar.xz linux-dev-04950cdf071b6e5aa4794c93ad3e3ce8a1c4aa8c.zip |
virtio: console: Add a find_port_by_devt() function
To convert to using cdev as a pointer to avoid kref troubles, we have to
use a different method to get to a port from an inode than the current
container_of method.
Add find_port_by_devt() that looks up all portdevs and ports with those
portdevs to find the right port.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/mm/fault.c')
0 files changed, 0 insertions, 0 deletions