Mode indicates how the file is open (read, write, etc).
Programs often apply more than one lock to a file, e.g., a user's program can apply a lock to each row in a database file that with a specified range of values (e.g, city="San Francisco").