Home | History | Annotate | Download | only in posix

Lines Matching refs:key

35 // It maps from an abstract key to a descriptor. If independent modules each
44 typedef uint32_t Key;
46 Descriptor(Key key, int fd);
47 Descriptor(Key key, int fd, base::MemoryMappedFile::Region region);
49 // Globally unique key.
50 Key key;
58 // Often we want a canonical descriptor for a given Key. In this case, we add
59 // the following constant to the key value:
65 // Get a descriptor given a key. It is a fatal error if the key is not known.
66 int Get(Key key) const;
68 // Get a descriptor given a key. Returns -1 on error.
69 int MaybeGet(Key key) const;
71 // Returns a descriptor given a key and removes it from this class mappings.
73 // It is a fatal error if the key is not known.
74 base::ScopedFD TakeFD(Key key, base::MemoryMappedFile::Region* region);
76 // Get a region given a key. It is a fatal error if the key is not known.
77 base::MemoryMappedFile::Region GetRegion(Key key) const;
79 // Set the descriptor for the given |key|. This sets the region associated
80 // with |key| to kWholeFile.
81 void Set(Key key, int fd);
83 // Set the descriptor and |region| for the given |key|.
84 void Set(Key key, int fd, base::MemoryMappedFile::Region region);