forked from torvalds/linux
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dlb: add scheduling domain configuration
Add support for configuring a scheduling domain, creating the domain fd, and reserving the domain's resources. When a user requests to create a scheduling domain via configfs, the requested resources are validated against the number currently available, and then reserved for the scheduling domain. An anonymous file descriptor for the domain is created and installed in the calling process's file descriptor table. The driver maintains a reference count for each scheduling domain, incrementing it each time user-space requests a file descriptor for a dlb port access and decrementing it in the file's release callback. When the reference count transitions from 1->0 the driver automatically resets the scheduling domain's resources and makes them available for use by future applications. This ensures that applications that crash without explicitly cleaning up do not orphan device resources. The code to perform the domain reset will be added in subsequent commits. Signed-off-by: Mike Ximing Chen <mike.ximing.chen@intel.com>
- Loading branch information
1 parent
bb13186
commit 0eda6e7
Showing
6 changed files
with
808 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.