blk_queue_set_discard

Langue: en

Version: May 2009 (fedora - 06/07/09)

Section: 9 (Appels noyau Linux)

NAME

blk_queue_set_discard - set a discard_sectors function for queue

SYNOPSIS

void blk_queue_set_discard(struct request_queue * q, prepare_discard_fn * dfn);

ARGUMENTS

q

queue

dfn

prepare_discard function

DESCRIPTION

It's possible for a queue to register a discard callback which is used to transform a discard request into the appropriate type for the hardware. If none is registered, then discard requests are failed with EOPNOTSUPP.