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 * 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 ---
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 * 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 ---