centos man page for ieee1284_ref

Query: ieee1284_ref

OS: centos

Section: 3

Links: centos man pages   all man pages

Forums: unix linux community   forum categories

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

IEEE1284_REF(3) 						     Functions							   IEEE1284_REF(3)

NAME
ieee1284_ref, ieee1284_unref - modify a port's reference count
SYNOPSIS
#include <ieee1284.h> int ieee1284_ref(struct parport *port); int ieee1284_unref(struct parport *port);
DESCRIPTION
If you want to free the port list from ieee1284_find_ports but open one of the ports later on, you will need to prevent it from being destroyed in ieee1284_free_ports. Each port has a reference count, and you can use ieee1284_ref to increment it and ieee1284_unref to decrement it. If you use ieee1284_ref at any stage, you must later call ieee1284_unref to relinquish the extra reference. If you do not do this, the resources associated with the port will not be cleaned up. If you have not previously used ieee1284_ref on a port, you must not use ieee1284_unref on it.
RETURN VALUE
These functions return the number of references held after the increment or decrement.
SEE ALSO
ieee1284_open(3)
AUTHOR
Tim Waugh <twaugh@redhat.com> Author.
COPYRIGHT
Copyright (C) 2001-2003 Tim Waugh [FIXME: source] 06/17/2014 IEEE1284_REF(3)
Related Man Pages
ieee1284_read_data(3) - debian
ieee1284_write_data(3) - centos
ieee1284_data_dir(3) - centos
ieee1284_data_dir(3) - suse
ieee1284_get_irq_fd(3) - suse
Similar Topics in the Unix Linux Community
Set hard block limit for user using quota
Shopt -s histappend
Unsure why access time on a directory change isn't changing
Controlling user input
Please Welcome Dave Munro to the Moderator Team!