1IEEE1284_REF(3)                    Functions                   IEEE1284_REF(3)
2
3
4

NAME

6       ieee1284_ref, ieee1284_unref - modify a port´s reference count
7

SYNOPSIS

9       #include <ieee1284.h>
10
11       int ieee1284_ref(struct parport *port);
12
13       int ieee1284_unref(struct parport *port);
14

DESCRIPTION

16       If you want to free the port list from ieee1284_find_ports but open one
17       of the ports later on, you will need to prevent it from being destroyed
18       in ieee1284_free_ports. Each port has a reference count, and you can
19       use ieee1284_ref to increment it and ieee1284_unref to decrement it.
20
21       If you use ieee1284_ref at any stage, you must later call
22       ieee1284_unref to relinquish the extra reference. If you do not do
23       this, the resources associated with the port will not be cleaned up.
24
25       If you have not previously used ieee1284_ref on a port, you must not
26       use ieee1284_unref on it.
27

RETURN VALUE

29       These functions return the number of references held after the
30       increment or decrement.
31

SEE ALSO

33       ieee1284_open(3)
34

AUTHOR

36       Tim Waugh <twaugh@redhat.com>
37           Author.
38
40       Copyright © 2001-2003 Tim Waugh
41
42
43
44[FIXME: source]                   07/22/2010                   IEEE1284_REF(3)
Impressum