suse man page for ata_host_alloc

Query: ata_host_alloc

OS: suse

Section: 9

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

ATA_HOST_ALLOC(9)						  libata Library						 ATA_HOST_ALLOC(9)

NAME
ata_host_alloc - allocate and init basic ATA host resources
SYNOPSIS
struct ata_host * ata_host_alloc(struct device * dev, int max_ports);
ARGUMENTS
dev generic device this host is associated with max_ports maximum number of ATA ports associated with this host
DESCRIPTION
Allocate and initialize basic ATA host resources. LLD calls this function to allocate a host, initializes it fully and attaches it using ata_host_register. max_ports ports are allocated and host->n_ports is initialized to max_ports. The caller is allowed to decrease host->n_ports before calling ata_host_register. The unused ports will be automatically freed on registration.
RETURNS
Allocate ATA host on success, NULL on failure.
LOCKING
Inherited from calling layer (may sleep).
AUTHOR
Jeff Garzik Author.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 ATA_HOST_ALLOC(9)
Related Man Pages
ata_slave_link_init(9) - centos
usb_make_path(9) - centos
siis(4) - debian
ata_scsi_translate(9) - suse
siis(4) - mojave
Similar Topics in the Unix Linux Community
Change directory error
Migrating to UNIX
A (ksh) Library For and From UNIX.com
The Future of the PM (Private Message) System at UNIX.com
Shopt -s histappend