Name

iscsi_find_flashnode_sess — finds flashnode session entry

Synopsis

struct device * iscsi_find_flashnode_sess (struct Scsi_Host * shost,
 void * data,
 int (*fn) (struct device *dev, void *data));
 

Arguments

struct Scsi_Host * shost

pointer to host data

void * data

pointer to data containing value to use for comparison

int (*)(struct device *dev, void *data) fn

function pointer that does actual comparison

Description

Finds the flashnode session object comparing the data passed using logic defined in passed function pointer

Return

pointer to found flashnode session device object on success NULL on failure