fd_array.hh (11856:103e2f92c965) fd_array.hh (11886:43b882cada33)
1/*
2 * Copyright (c) 2016 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * For use for simulation and test purposes only
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

--- 90 unchanged lines hidden (view full) ---

99 int allocFD(std::shared_ptr<FDEntry> fdp);
100
101 /**
102 * Return the size of the _fdArray field
103 */
104 int getSize() const { return _fdArray.size(); }
105
106 /**
1/*
2 * Copyright (c) 2016 Advanced Micro Devices, Inc.
3 * All rights reserved.
4 *
5 * For use for simulation and test purposes only
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are met:

--- 90 unchanged lines hidden (view full) ---

99 int allocFD(std::shared_ptr<FDEntry> fdp);
100
101 /**
102 * Return the size of the _fdArray field
103 */
104 int getSize() const { return _fdArray.size(); }
105
106 /**
107 * Put the pointer specified by fdep into the _fdArray entry indexed
108 * by tgt_fd.
109 * @param tgt_fd Use target file descriptors to index the array.
110 * @param fdep Incoming pointer used to set the entry pointed to by tgt_fd.
111 */
112 void setFDEntry(int tgt_fd, std::shared_ptr<FDEntry> fdep);
113
114 /**
107 * Try to close the host file descriptor. If successful, set the
108 * specified file descriptor entry object pointer to nullptr.
109 * Used to "close" the target file descriptor.
110 * @param tgt_fd Use target file descriptors to index the array.
111 */
112 int closeFDEntry(int tgt_fd);
113
114 private:

--- 34 unchanged lines hidden ---
115 * Try to close the host file descriptor. If successful, set the
116 * specified file descriptor entry object pointer to nullptr.
117 * Used to "close" the target file descriptor.
118 * @param tgt_fd Use target file descriptors to index the array.
119 */
120 int closeFDEntry(int tgt_fd);
121
122 private:

--- 34 unchanged lines hidden ---