Home | History | Annotate | Download | only in posix

Lines Matching refs:Key

34 // It maps from an abstract key to a descriptor. If independent modules each
39 typedef uint32_t Key;
41 Descriptor(Key key, int fd);
42 Descriptor(Key key, int fd, base::MemoryMappedFile::Region region);
44 // Globally unique key.
45 Key key;
53 // Often we want a canonical descriptor for a given Key. In this case, we add
54 // the following constant to the key value:
64 // Get a descriptor given a key. It is a fatal error if the key is not known.
65 int Get(Key key) const;
67 // Get a descriptor given a key. Returns -1 on error.
68 int MaybeGet(Key key) const;
70 // Get a region given a key. It is a fatal error if the key is not known.
71 base::MemoryMappedFile::Region GetRegion(Key key) const;
73 // Set the descriptor for the given |key|. This sets the region associated
74 // with |key| to kWholeFile.
75 void Set(Key key, int fd);
77 // Set the descriptor and |region| for the given |key|.
78 void Set(Key key, int fd, base::MemoryMappedFile::Region region);