1 /*******************************************************************************
2 * Copyright (c) 2016 École Polytechnique de Montréal
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.analysis
.os
.linux
.core
.inputoutput
;
13 * Enum type for IO operations
15 * @author Geneviève Bastien
17 public enum IoOperationType
{
29 * Get the BIO type from the rwbs value of a block operation.
32 * The rwbs value of the block operation
33 * @return The BIO type
35 public static IoOperationType
getType(int rwbs
) {
36 /* Even is a "read", odd is a "write" */
37 return (rwbs
% 2 == 0) ? READ
: WRITE
;
This page took 0.03274 seconds and 5 git commands to generate.