@@ -140,101 +140,101 @@ class ZSwapObject
140
140
bool IsAvailable () const ;
141
141
private:
142
142
/* *
143
- * Stores the ZSwap kernel module parameters path.
143
+ * Stores the ZSwap kernel module options path.
144
144
*/
145
145
const std::string ZSwapModuleParametersPath = " /sys/module/zswap/parameters/" ;
146
146
147
147
/* *
148
- * Stores the ZSwap enabled internal parameter name.
148
+ * Stores the ZSwap enabled internal option name.
149
149
*/
150
150
const std::string ZSwapEnabledName = " enabled" ;
151
151
152
152
/* *
153
- * Stores the same filled pages enabled internal parameter name.
153
+ * Stores the same filled pages enabled internal option name.
154
154
*/
155
155
const std::string ZSwapSameFilledPagesName = " same_filled_pages_enabled" ;
156
156
157
157
/* *
158
- * Stores the maximum pool percentage internal parameter name.
158
+ * Stores the maximum pool percentage internal option name.
159
159
*/
160
160
const std::string ZSwapMaxPoolPercentName = " max_pool_percent" ;
161
161
162
162
/* *
163
- * Stores the compression algorithm internal parameter name.
163
+ * Stores the compression algorithm internal option name.
164
164
*/
165
165
const std::string ZSwapCompressorName = " compressor" ;
166
166
167
167
/* *
168
- * Stores the kernel's zpool type internal parameter name.
168
+ * Stores the kernel's zpool type internal option name.
169
169
*/
170
170
const std::string ZSwapZpoolName = " zpool" ;
171
171
172
172
/* *
173
- * Stores the accept threshold percentage internal parameter name.
173
+ * Stores the accept threshold percentage internal option name.
174
174
*/
175
175
const std::string ZSwapAcceptThresholdPercentName = " accept_threshold_percent" ;
176
176
177
177
/* *
178
- * Stores the non same filled pages enabled internal parameter name.
178
+ * Stores the non same filled pages enabled internal option name.
179
179
*/
180
180
const std::string ZSwapNonSameFilledPagesName = " non_same_filled_pages_enabled" ;
181
181
182
182
/* *
183
- * Stores the exclusive loads enabled internal parameter name.
183
+ * Stores the exclusive loads enabled internal option name.
184
184
*/
185
185
const std::string ZSwapExclusiveLoadsName = " exclusive_loads" ;
186
186
187
187
/* *
188
- * Stores the shrinker enabled internal parameter name.
188
+ * Stores the shrinker enabled internal option name.
189
189
*/
190
190
const std::string ZSwapShrinkerEnabledName = " shrinker_enabled" ;
191
191
192
192
/* *
193
- * Writes a new value to the specified ZSwap kernel module variable .
194
- * @param Name Variable name.
195
- * @param Value Variable value.
193
+ * Writes a new value to the specified ZSwap kernel module option .
194
+ * @param Name Option name.
195
+ * @param Value Option value.
196
196
* @exception Raises an instance of std::runtime_error if the kernel
197
- * module variable is not available.
197
+ * module option is not available.
198
198
*/
199
199
void WriteZSwapValue (const std::string&, const std::string&) const ;
200
200
201
201
/* *
202
- * Reads the value of the ZSwap kernel module variable by the specified
203
- * name.
204
- * @param Name Variable name.
205
- * @returns Variable value or N/A if not available.
202
+ * Reads the value of the ZSwap kernel module option by the
203
+ * specified name.
204
+ * @param Name Option name.
205
+ * @returns Option value or N/A if not available.
206
206
*/
207
207
std::string ReadZSwapValue (const std::string&) const ;
208
208
209
209
/* *
210
210
* Prints the log entry to the standard output.
211
- * @param Name Variable name.
212
- * @param Value Variable value.
211
+ * @param Name Option name.
212
+ * @param Value Option value.
213
213
*/
214
214
void WriteLogEntry (const std::string&, const std::string&) const ;
215
215
216
216
/* *
217
217
* Checks if the value is Y or N.
218
- * @param Name Variable name.
219
- * @param Value Variable value to check.
218
+ * @param Name Option name.
219
+ * @param Value Option value to check.
220
220
* @exception Raises an instance of std::invalid_argument if the
221
221
* value does not meet the criteria.
222
222
*/
223
223
void CheckValueBool (const std::string&, const std::string&) const ;
224
224
225
225
/* *
226
226
* Checks if the value is empty.
227
- * @param Name Variable name.
228
- * @param Value Variable value to check.
227
+ * @param Name Option name.
228
+ * @param Value Option value to check.
229
229
* @exception Raises an instance of std::invalid_argument if the
230
230
* value does not meet the criteria.
231
231
*/
232
232
void CheckValueEmpty (const std::string&, const std::string&) const ;
233
233
234
234
/* *
235
235
* Checks if the value is in the [0..100] range.
236
- * @param Name Variable name.
237
- * @param Value Variable value to check.
236
+ * @param Name Option name.
237
+ * @param Value Option value to check.
238
238
* @exception Raises an instance of std::invalid_argument if the
239
239
* value does not meet the criteria.
240
240
*/
0 commit comments