Opinion
KOONTZ, C.J.This is an appeal from a denial of a petition for a writ of habeas corpus filed in the Circuit Court of Pulaski County. Appellant, Delmer L. Smith, contends that a suspended misdemeanor sentence was improperly revoked at a probation revocation hearing.
We find that Smith lacks standing to raise this issue in a habeas corpus proceeding.
On June 3, 1982, pursuant to a plea agreement, Smith pled guilty to an indictment charging unlawful wounding and to a misdemeanor warrant charging trespass. The sentencing order of the Pulaski County Circuit Court read, in part, as follows:
[I]t is the judgment of this Court that the defendant is hereby sentenced in accordance with the aforementioned plea agreement to three (3) years in the penitentiary upon Indictment No. 82.75 and sentenced to six (6) months in jail upon the misdemeanor charge of trespass. And being of the opinion that it is compatible with the public interest so to do, the Court doth further ORDER that said sentences be, and they are hereby, suspended, and the defendant is placed on probation under the active supervision of a Probation Officer of this Court for a period of three (3) years upon the usual conditions of probation and upon the express condition that the defendant pay the costs of these proceedings by the September, 1982, term of this Court.
On October 31, 1983, acting on a complaint from Smith’s probation officer, the court determined that he had violated the terms of his probation. The court then entered an order stating that “the *239suspension of the execution of the sentence in the penitentiary for a term of three (3) years and in the jail for a term of six (6) months and the placing of the defendant on probation under the supervision of a Probation Officer as heretofore pronounced be, and the same is hereby, revoked. . . .”
The court then sentenced Smith to consecutive terms of three years in the penitentiary and six months in jail. Smith filed a petition for appeal with the Virginia Supreme Court. The petition was denied.
Thereafter, Smith filed a petition for a writ of habeas corpus in the Pulaski County Circuit Court. The petition was denied. This appeal followed.
Smith contends that the wording of the June 3, 1982, sentencing order is ambiguous as to whether the misdemeanor sentence suspension was conditioned upon the three year probation and its terms.
We find that Smith lacks standing to raise this issue for the first time in a habeas corpus proceeding. “The function of a writ of habeas corpus is to inquire into jurisdictional defects amounting to want of legal authority for the detention of a person on whose behalf it is asked.” Brooks v. Peyton, 210 Va. 318, 321, 171 S.E.2d 243, 246 (1969). The validity of the revocation of the suspended misdemeanor sentence could have been raised and adjudicated at the probation revocation hearing and upon direct appeal therefrom. See Slayton v. Parrigan, 215 Va. 27, 29-30, 205 S.E.2d 680, 682 (1974), cert. denied, 419 U.S. 1108 (1975); Ferguson v. Superintendent, 215 Va. 269, 272-73, 208 S.E.2d 749, 752 (1974).
Furthermore, we find no ambiguity in the June 3, 1982, sentencing order that would support Smith’s claim that the misdemeanor sentence suspension could not be revoked. Its terms are clear. Both the felony and misdemeanor sentences were suspended and Smith was placed on probation for a period of three years.
The judgment of the court below denying the petition for a writ of habeas corpus is affirmed.
*240 Affirmed.
Baker, J., and Moon, J., concurred.