mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-21 10:25:08 -04:00
kern: implement port debug
This commit is contained in:
parent
8a4bf6a0a8
commit
0acd79c8c2
6 changed files with 132 additions and 6 deletions
|
@ -42,6 +42,10 @@ namespace ams::kern {
|
|||
|
||||
constexpr const KPort *GetParent() const { return this->parent; }
|
||||
|
||||
ALWAYS_INLINE s32 GetNumSessions() const { return this->num_sessions; }
|
||||
ALWAYS_INLINE s32 GetPeakSessions() const { return this->peak_sessions; }
|
||||
ALWAYS_INLINE s32 GetMaxSessions() const { return this->max_sessions; }
|
||||
|
||||
bool IsLight() const;
|
||||
|
||||
/* Overridden virtual functions. */
|
||||
|
|
|
@ -31,4 +31,7 @@ namespace ams::kern::KDumpObject {
|
|||
void DumpProcess();
|
||||
void DumpProcess(u64 process_id);
|
||||
|
||||
void DumpPort();
|
||||
void DumpPort(u64 process_id);
|
||||
|
||||
}
|
||||
|
|
|
@ -71,6 +71,8 @@ namespace ams::kern {
|
|||
KServerSession &GetServerSession() { return this->server; }
|
||||
const KClientSession &GetClientSession() const { return this->client; }
|
||||
const KServerSession &GetServerSession() const { return this->server; }
|
||||
|
||||
const KClientPort *GetParent() const { return this->port; }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue