lkml.org 
[lkml]   [2000]   [Feb]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Driver reading from a file
    Date
    From
    > set up persistent binding environment for Linux.  This happens to Fibre
    > Channel world when new device plugged into the loop or Fibric, the existing
    > device address could change which leads to target id changes. The persisten
    > binding is to preserve all existing device target id unchanged. This
    > requires to put existing target id and the coresponding device world wide
    > name pair somewhere in a file (or ROM), and be a refernece for the system
    > next boot.

    So the amount of data is quite small ?

    > If Linux has some system calls to allow driver access from a file during the
    > loading process, the solution will be obvious.

    You have two cases then

    1. You are the compiled in root file system driver. In which case only
    boot up options from the command line (or lilo added) will work
    since the rootfs cant be mounted until you are running

    2. You pass the target id as a module parameter with insmod and use
    the value in the driver.

    Presumably an application would be needed after loading that queried the
    driver to see if the target id changed ?



    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-03-22 13:56    [W:3.259 / U:2.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site